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 have 2 custom modules "notebook" and "bpc" in which notebook.notebook_form_view is referenced to bpc_form_view. In notebook module, lets say we have 3 fields : 'title' : fields.char('Title', size=30, required=True), 'note' : fields.text('Note'), 'note_date' : fields.date('Date'), In bpc module, I need to add 2 fields and the inherited fields. 'before' : fields.text('before'), 'after': fields.text('after'), in my bpc_form_view: <record model="ir.ui.view" id="bpc_form_view"> <field name="name">bpc.form</field> <field name="model">bpc</field> <field name="inherit_id" ref="notebook.notebook_form_view">form </field> <field name="arch" type="xml"> <field name="note" position="before"> <field name="before" /> </field> <field name="note_date" position="after"> <field name="after" /> </field> </field> </record> in my notebook_form_view: <record model="ir.ui.view" id="notebook_form_view"> <field name="name">notebook.form</field> <field name="model">notebook</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Notebook"> <field name="title"/> <field name="note"/> <field name="note_date"/> </form> </field> </record> **Output sequence regarding the notebook_form_view is:** title note Date **Output regarding the inherited view in bpc_form_view is in the sequence:** Note before after Date Title
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: 6/5/13, 5:08 AM|
|Seen: 2008 times|
|Last updated: 3/16/15, 8:10 AM|