
Search In
If you use to initializer receives the parameters passed when using the new operator in OpenERP(Odoo) follow the below mentioned code and paste it in your .js file.
var MyClass = instance.web.Class.extend({
init: function(name) {
this.na
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 Odoo-9 reports are written in HTML/QWeb, like all regular views in Odoo. You can use the usual QWeb control flow tools. The PDF rendering itself is performed by pdf.For example code is below.
report
id="account_invoices"
model="account.in
As i have already defined what all things we need as prerequisite to access a blob in Azure in my previous blog Retrieve File from a private container in Azure, Here is the code for Storing byte array in an Azure blob
public string UploadByteArrayTo
**Installation of JDK on Ubuntu is very easy just follow below Steps**:
Java is typically installed in /usr/java locate the version you have and then do the following:
Open Terminal.
Use Command.
sudo apt-get install openjdk-7-jdk
After the insta
Strong names are used by the assemblies for their unique names. It is used when we want to deploy the assembly in Global Assembly Cache then strong name helps Global Assembly Cache to differentiate two versions. Strong name is basically a unique iden
Step-1 Install multi_search module.
Step-2 inherit = 'product.product' class in .py(Python file) in multi_search module.
In below example, I have custmozied .py file. You can directly copy the below python code in multi_search module -
class prod
Use below method to create Google Maps in OpenERP
1- use this code .py file in openerp
from openerp.osv import osv,fields
class launch_map(osv.osv):
_inherit = "res.partner"
def open_map(self, cr, uid, ids, context=None):
if cont
OpenCV library is useful to convert image background color to another RGB color.
We basically read the image using BufferedImage then we read bytes data from that image and we create a new MAT by applying image height and width and then put that byt
Access control is used to define accessibility of a class or data members and functions of a class. We can set scope of a member so that it is visible only in the class in which it is defined or in subclasses or in the module or everywhere.