Add product_package and package_quantity in purchase line tree view

#159949
This commit is contained in:
Raimon Esteve 2023-06-13 17:06:51 +02:00
parent 31a43e2348
commit 4bb287298b
3 changed files with 28 additions and 0 deletions

View file

@ -13,5 +13,15 @@
<field name="inherit" ref="purchase.purchase_view_form"/>
<field name="name">purchase_form</field>
</record>
<record model="ir.ui.view" id="purchase_line_view_tree_sequence">
<field name="model">purchase.line</field>
<field name="inherit" ref="purchase.purchase_line_view_tree_sequence"/>
<field name="name">purchase_line_tree_sequence</field>
</record>
<record model="ir.ui.view" id="purchase_line_view_tree">
<field name="model">purchase.line</field>
<field name="inherit" ref="purchase.purchase_line_view_tree"/>
<field name="name">purchase_line_tree</field>
</record>
</data>
</tryton>

View file

@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='quantity']" position="before">
<field name="product_package"/>
<field name="package_quantity"/>
</xpath>
</data>

View file

@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='quantity']" position="before">
<field name="product_package"/>
<field name="package_quantity"/>
</xpath>
</data>