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.
Example 1:
Example 2:
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: