diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/product_expiry/views/stock_move_views.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/product_expiry/views/stock_move_views.xml')
| -rw-r--r-- | addons/product_expiry/views/stock_move_views.xml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/addons/product_expiry/views/stock_move_views.xml b/addons/product_expiry/views/stock_move_views.xml new file mode 100644 index 00000000..98f62fe6 --- /dev/null +++ b/addons/product_expiry/views/stock_move_views.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <record id="view_stock_move_operations_expiry" model="ir.ui.view"> + <field name="name">stock.move.operations.inherit.form</field> + <field name="model">stock.move</field> + <field name="inherit_id" ref="stock.view_stock_move_operations"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='product_id']" position="after" > + <field name="picking_code" invisible="1"/> + <field name="use_expiration_date" invisible="1"/> + </xpath> + </field> + </record> + + <record id="view_stock_move_line_operation_tree_expiry" model="ir.ui.view"> + <field name="name">stock.move.line.inherit.tree</field> + <field name="model">stock.move.line</field> + <field name="inherit_id" ref="stock.view_stock_move_line_operation_tree"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='lot_name']" position="after" > + <field name="picking_type_use_existing_lots" invisible="1"/> + <field name="expiration_date" force_save="1" attrs="{ + 'column_invisible': ['|', ('parent.use_expiration_date', '!=', True), ('parent.picking_code', '!=', 'incoming')], + 'readonly': [('picking_type_use_existing_lots', '=', True)], + }"/> + </xpath> + </field> + </record> + + <record id="view_stock_move_line_detailed_operation_tree_expiry" model="ir.ui.view"> + <field name="name">stock.move.line.operations.inherit.tree</field> + <field name="model">stock.move.line</field> + <field name="inherit_id" ref="stock.view_stock_move_line_detailed_operation_tree"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='lot_name']" position="after"> + <field name="picking_type_use_existing_lots" invisible="1"/> + <field name="expiration_date" force_save="1" attrs="{ + 'column_invisible': [('parent.picking_type_code', '!=', 'incoming')], + 'readonly': [('picking_type_use_existing_lots', '=', True)], + }"/> + </xpath> + </field> + </record> +</odoo> |
