Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
41
sale_packaging_default/views/sale_order_view.xml
Executable file
41
sale_packaging_default/views/sale_order_view.xml
Executable file
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2023 Moduon Team S.L. <info@moduon.team>
|
||||
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
|
||||
<data>
|
||||
<record id="view_order_form_inherit_sale" model="ir.ui.view">
|
||||
<field name="name">Simplify packaging fields</field>
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form" />
|
||||
<field name="arch" type="xml">
|
||||
<!-- Move packaging and packaging qty before product qty in tree view -->
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/list/field[@name='product_uom_qty']"
|
||||
position="before"
|
||||
>
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/list/field[@name='product_packaging_id']"
|
||||
position="move"
|
||||
/>
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/list/field[@name='product_packaging_qty']"
|
||||
position="move"
|
||||
/>
|
||||
</xpath>
|
||||
|
||||
<!-- Move packaging and packaging qty before product qty in form view -->
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/form//label[@for='product_uom_qty']"
|
||||
position="before"
|
||||
>
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/form//field[@name='product_packaging_id']"
|
||||
position="move"
|
||||
/>
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/form//field[@name='product_packaging_qty']"
|
||||
position="move"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
Reference in New Issue
Block a user