Created
June 9, 2022 16:36
-
-
Save 3mrdev/a0d3585b36b8fd1978f956e4140ee668 to your computer and use it in GitHub Desktop.
Odoo view inheritance through XPath
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <record id="your_model_view_form_firebits" model="ir.ui.view"> | |
| <field name="name">your_model.view.form.inherit.firebits</field> | |
| <field name="model">your_model</field> | |
| <field name="priority" eval="25"/> | |
| <field name="inherit_id" ref="your_model_view_external_id"/> | |
| <field name="arch" type="xml"> | |
| <xpath expr="//div[hasclass('your_class')]" position="inside"> | |
| # your field | |
| </xpath> | |
| </field> | |
| </record> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment