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.
like you can see I have a record with id
osc_product_category_form. Now I want include this record(form) in the record with the id
Is it possible to make something like this:
<record id="osc_product_category_form" model="ir.ui.view"> <field name="name">osc.product.category.form</field> <field name="model">osc.product.category</field> <field name="arch" type="xml"> <form string="OsCommerce Product Categories" version="7.0"> <notebook> <page string="osCommerce"> <group> <group> <field name="osc_category_id"/> <field name="osc_categories_image" widget="image"/> <field name="osc_categories_name"/> ... </group> </group> </page> </notebook> </form> </field> </record> <record id="asdfasdf" model="ir.ui.view"> <field name="name">asdf.product.category.form</field> <field name="model">product.category</field> <field name="inherit_id" ref="product.product_category_form_view"/> <-- inherit and add the record from above <field name="arch" type="xml"> <xpath expr="//form/sheet" position="inside"> <field name="osc_product_category_form"/> <-- the record above </xpath> </field> </record>
Thank you very much.
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: 4/23/13, 4:13 PM|
|Seen: 882 times|
|Last updated: 3/16/15, 8:10 AM|