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.
Hope my mail find you well
Could you help me about now i made updates in fields_view_get the main method in orm class
my question is how to separate my customized code in separate module??? ...
when installed it my customized code is installed
Sr.Odoo Developer @ Techorg CO
It is similar with other python inheritance. You define the fields_view_get method of the model in a new module. If you still need to call the super method, you call it by res = super(class_name, self).fields_view_get(....). You can then put you logic before or after the super call and return res or an modified res. A sample could be found in addons/account/account.py
thank you Ivan for your quicly respond
i know what you say about how to _inherit fields_view_get for one module
my question is about "i update in orm class itself openerp core module "in fields_view_get method under basemodel class for all objects in openerp.
how these updates can be seperated in module installble ??
hope you understand me...
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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/20/15, 8:25 AM|
|Seen: 542 times|
|Last updated: 3/16/15, 8:10 AM|