Friday, July 19, 2013

Function tag in openERP v7 for calling a function when installing/updating the module

I dont think everyone is aware on the function tag in openERP. Last week I had a requirement that when my module is installed, then email alias should be created with the name of the database. I checked everywhere and cant find any useful things. I tried to modify javascript also.. Then I found this function tag.
 This tag is mainly used when you want to call a function/method after installing/updating the module.
Then write your method in your model. You can also pass arguments to the function. Following are some examples defined in openerp
Example 1:


Example 2:










No comments:

Post a Comment