Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I want to call the method which should be run in backend at the time of record creation.
E.g. If I create POS Order, my process should be run in backend at the same time of creating record.
Can anyone suggest how to do?
Just use the create method in your sales order class,
import urllib2 def create(self, cr, uid, vals, context=None): # just put your code here... urlread = urllib2.urlopen("http://www.abc.com").read() return super(sale_order, self).create(cr, uid, context=context)
The above method calling when you click on the save button.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/3/14, 6:26 AM|
|Seen: 969 times|
|Last updated: 3/16/15, 8:10 AM|