Openerp - how to inherit a view and keep the original?

Is there a way to make changes to the view using inheritance and keep the original view intact?

+4
source share
3 answers

To do this, you need to inherit the view, make changes according to your needs, and then prioritize this "new view" above the original one, call up a new view in a specific place or menu, use ir.actions.act_window.view . for more details you can check the "crm" module.

Cheers, Parthiv

+1
source

You can inherit a view like this without changing the original view

 <record id="invoice_supplier_form" model="ir.ui.view"> <field name="name">account.invoice.supplier.form.inherit</field> <field name="model">account.invoice</field> <field name="inherit_id" ref="account.invoice_supplier_form"/> <field name="arch" type="xml"> <field name="partner_bank_id" position="before"> <field name="amount_to_pay"/> </field> </field> </record> 
0
source

You must inherit orm with the same name as the base, I encountered the same problem, but it was fixed as I made the name of the inherited orm the same as the inheriting orm. Fixed problem with the original view.

0
source

All Articles