Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
34
sale_order_lot_selection/views/sale_order_views.xml
Executable file
34
sale_order_lot_selection/views/sale_order_views.xml
Executable file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="view_order_tree_lot" model="ir.ui.view">
|
||||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/list/field[@name='product_template_id']"
|
||||
position="after"
|
||||
>
|
||||
<field
|
||||
name="lot_id"
|
||||
domain="[('product_id','=', product_id)]"
|
||||
invisible="not product_id or product_tracking=='none'"
|
||||
context="{'default_product_id': product_id}"
|
||||
groups="stock.group_production_lot"
|
||||
optional="show"
|
||||
/>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//field[@name='order_line']/form/group/group/div/field[@name='product_id']"
|
||||
position="after"
|
||||
>
|
||||
<field
|
||||
name="lot_id"
|
||||
domain="[('product_id','=', product_id)]"
|
||||
invisible="not product_id or product_tracking=='none'"
|
||||
context="{'default_product_id': product_id}"
|
||||
groups="stock.group_production_lot"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user