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.
Once Sale Order Confirmed Button Clicked. action_wait, action_confirm method are called.
action_wait mehtod is called from the Sale Order workflow signal order_confirm
action_confirm method is called from the Stock Order workflow signal button_confirm
In My doubt is in Sale Order confirm button clicked. How the Stock workflow action_confirm method called? where the code written to calling the Stock action_confirm?
If you check the "def _create_pickings_and_procurements(self, cr, uid, order, order_lines, picking_id=False, context=None):" method in the sale module. You will find this line:
wf_service.trg_validate(uid, 'stock.picking', picking_id, 'button_confirm', cr)
I think this is what you are looking for?
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: 2/22/13, 5:04 AM|
|Seen: 2257 times|
|Last updated: 3/16/15, 8:10 AM|