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 override the Validate function in Customer Invoices from Customer Module.
I know How to override and how to create Custom Module, my query was that when I search for the function, I am unable to find the function in the addons.
If that function didn't relate to that module , how openerp was performing the functionality.
Or if I am wrong , please post me the function module details.
The function Name is : invoice_open
This function relate to "account.invoice" module.
Please have a look on the workflow of the invoice.
Activity : "open"
<record id="act_open" model="workflow.activity">
<field name="wkf_id" ref="wkf"/>
Transition : "draft" to "open"
<record id="t4" model="workflow.transition">
<field name="act_from" ref="act_draft"/>
<field name="act_to" ref="act_open"/>
Based on this workflow there is an signal "invoice_open" it is not an method. There is a button with name "invoice_open" and by default type of that button is "workflow". So, when this button is pressed at that time the methods are called as below.
Those four methods are called because those are write down on the activity "open".
So, If you want to override or inherit validate function of invoice then please override or inherite any one of the function.
I hope it is clear to you and helpful to achieve your goal.
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: 9/15/14, 1:00 AM|
|Seen: 2516 times|
|Last updated: 3/16/15, 8:10 AM|