
Search In
Hello Readers ,
The following code demonstrate how you would accomplish common tasks with the Facebook SDK for PHP.
This SDK can be use in facebook login , Retrieve a user's profile , Post a link to a user's feed.
window.fbAsyncInit = function(
Sometimes we need to send data from Controller to JSp. Here I'm going to explain how we can send and iterate Object List in JSP file. You can do this easily by following the below steps:
1- Define the below dependency in you pom.xml file for jackso
In below example, I have written Python script to amount interest provision in accounting. Use below python code in your .py file :
if demand.amount_interest:
cfpline_obj.create(cr, uid, {
'origin': demand._nam
In Openerp first Override the method of function and then write the function in your own module and link the documents at of the classic form view and redirect the documents to the online quote if exists using this get_access function as show in giv
If you want generate the barcode for product in odoo You will need the following kind of python code declaration in your .py file:
from openerp.osv import fields, orm
from openerp.tools.translate import _
def isodd(x):
return bool(x % 2)
If you want to get right debit / credit in accounting module follow the following code .
target_currency = target_currency or company_currency
line_currency = line.currency_id or company_currency
amount_currency_str = ""
$(“div[id^='box']”)
The above expression mean selecting all div elements whose id attribute start with box like box1, box2 etc.
Program to demonstrate above expression:
<html lang="en">
<head>
<script src="
$(“div[id*='box']”) in jQuery
The above expression mean selecting all div elements whose id attribute contain box word anywhere like firstbox, secondbox, box1, box2, middleboxexample etc.
Program to demonstrate above
$(“div[id$='box']”) in jQuery
The above expression mean selecting all div elements whose id attribute end with box like firstbox, secondbox etc.
Program to demonstrate above expression:
<html lang="en">
&
Some times in magento we are required to get list of orders of the current logged users.
To do so lets see how we can do it:
first of all we need to get the logged in user id from the session for the same write the below cod
