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