python - OpenERP add column to treeView -
im trying show new column in treeview purchase.order.tree.
my goal is, becosue have product, orders have 1 product quantity number, how show quantity in treeview purchase.order.tree ?
any ideas ?
you'll have override original view , add new field, on example overriding account.invoice:
<record model="ir.ui.view" id="new_invoice_tree"> <field name="name">mymodule.account.invoice.tree</field> <field name="model">account.invoice</field> <field name="inherit_id" ref="account.invoice_tree"/> <field name="arch" type="xml"> <field name="name" position="after"> <field name="quantity"/> </field> </field> </record>
just make sure inherit_id referencing original view , set correct model on name="model"
Comments
Post a Comment