Files
Odoo-18.0-20251222/sale_packaging_default/views/sale_order_view.xml
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

42 lines
1.7 KiB
XML
Executable File

<?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>