| 1 |
<?xml version="1.0" encoding='UTF-8'?> |
| 2 |
<odoo> |
| 3 |
<record id="view_product_form_expiry" model="ir.ui.view"> |
| 4 |
<field name="name">product.template.inherit.form</field> |
| 5 |
<field name="model">product.template</field> |
| 6 |
<field name="inherit_id" ref="stock.view_template_property_form" /> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<group name="traceability" position="inside"> |
| 9 |
<field name="use_expiration_date" string="Expiration Date" invisible="tracking == 'none'"/> |
| 10 |
</group> |
| 11 |
<group name="stock_property" position="after"> |
| 12 |
<group string="Dates" name="expiry_and_lots" groups="stock.group_production_lot" |
| 13 |
invisible="tracking == 'none' or not use_expiration_date"> |
| 14 |
<label for="expiration_time"/> |
| 15 |
<div> |
| 16 |
<field name="expiration_time" class="oe_inline"/> |
| 17 |
<span> days after receipt</span> |
| 18 |
</div> |
| 19 |
<label for="use_time"/> |
| 20 |
<div> |
| 21 |
<field name="use_time" class="oe_inline"/> |
| 22 |
<span> days before expiration date</span> |
| 23 |
</div> |
| 24 |
<label for="removal_time"/> |
| 25 |
<div> |
| 26 |
<field name="removal_time" class="oe_inline"/> |
| 27 |
<span> days before expiration date</span> |
| 28 |
</div> |
| 29 |
<label for="alert_time"/> |
| 30 |
<div> |
| 31 |
<field name="alert_time" class="oe_inline"/> |
| 32 |
<span> days before expiration date</span> |
| 33 |
</div> |
| 34 |
</group> |
| 35 |
</group> |
| 36 |
</field> |
| 37 |
</record> |
| 38 |
</odoo> |