changes position 'useful_life' and 'warranty'
This commit is contained in:
parent
d0ab043193
commit
8cc60e6540
@ -118,13 +118,9 @@ class Template(metaclass=PoolMeta):
|
||||
domain=[('category', '=', Id('optical_equipment', 'uom_cat_electrical_tension'))],
|
||||
states={'invisible' : If(Eval('voltageDC') == None, True)},
|
||||
depends=['voltageDC'])
|
||||
useful_life = fields.Integer("Useful life")
|
||||
useful_life_uom = fields.Many2One('product.uom', 'Useful Life UOM',
|
||||
domain=[('category', '=', Id('product', "uom_cat_time"))])
|
||||
warranty = fields.Integer("Warranty")
|
||||
warranty_uom = fields.Many2One('product.uom', 'Useful Life UOM',
|
||||
domain=[('category', '=', Id('product', "uom_cat_time"))])
|
||||
|
||||
useful_life = fields.Integer("Useful life")
|
||||
warranty = fields.Integer("Warranty")
|
||||
|
||||
@classmethod
|
||||
@fields.depends('temperature')
|
||||
|
@ -31,6 +31,10 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="main_tecnology"/>
|
||||
<label name="software_version"/>
|
||||
<field name="software_version"/>
|
||||
<label name="useful_life"/>
|
||||
<field name="useful_life"/>
|
||||
<label name="warranty"/>
|
||||
<field name="warranty"/>
|
||||
<label name="observation"/>
|
||||
<field name="observation"/>
|
||||
</page>
|
||||
@ -56,7 +60,6 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<field name="frequency"/>
|
||||
<field name="frequency_uom"/>
|
||||
|
||||
|
||||
<label name="voltageAC"/>
|
||||
<field name="voltageAC"/>
|
||||
<field name="voltageAC_uom"/>
|
||||
@ -64,15 +67,5 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<label name="voltageDC"/>
|
||||
<field name="voltageDC"/>
|
||||
<field name="voltageDC_uom"/>
|
||||
|
||||
<separator id="time_life_equipment" string="Time Life Equipment" colspan="4"/>
|
||||
|
||||
<label name="useful_life"/>
|
||||
<field name="useful_life"/>
|
||||
<field name="useful_life_uom"/>
|
||||
|
||||
<label name="warranty"/>
|
||||
<field name="warranty"/>
|
||||
<field name="warranty_uom"/>
|
||||
</xpath>
|
||||
</data>
|
||||
|
Loading…
Reference in New Issue
Block a user