changes position 'useful_life' and 'warranty'

This commit is contained in:
sinergia 2022-07-04 11:33:32 -05:00
parent d0ab043193
commit 8cc60e6540
2 changed files with 6 additions and 17 deletions

View File

@ -118,13 +118,9 @@ class Template(metaclass=PoolMeta):
domain=[('category', '=', Id('optical_equipment', 'uom_cat_electrical_tension'))], domain=[('category', '=', Id('optical_equipment', 'uom_cat_electrical_tension'))],
states={'invisible' : If(Eval('voltageDC') == None, True)}, states={'invisible' : If(Eval('voltageDC') == None, True)},
depends=['voltageDC']) depends=['voltageDC'])
useful_life = fields.Integer("Useful life") 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 = fields.Integer("Warranty")
warranty_uom = fields.Many2One('product.uom', 'Useful Life UOM',
domain=[('category', '=', Id('product', "uom_cat_time"))])
@classmethod @classmethod
@fields.depends('temperature') @fields.depends('temperature')

View File

@ -31,6 +31,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="main_tecnology"/> <field name="main_tecnology"/>
<label name="software_version"/> <label name="software_version"/>
<field name="software_version"/> <field name="software_version"/>
<label name="useful_life"/>
<field name="useful_life"/>
<label name="warranty"/>
<field name="warranty"/>
<label name="observation"/> <label name="observation"/>
<field name="observation"/> <field name="observation"/>
</page> </page>
@ -56,23 +60,12 @@ this repository contains the full copyright notices and license terms. -->
<field name="frequency"/> <field name="frequency"/>
<field name="frequency_uom"/> <field name="frequency_uom"/>
<label name="voltageAC"/> <label name="voltageAC"/>
<field name="voltageAC"/> <field name="voltageAC"/>
<field name="voltageAC_uom"/> <field name="voltageAC_uom"/>
<label name="voltageDC"/> <label name="voltageDC"/>
<field name="voltageDC"/> <field name="voltageDC"/>
<field name="voltageDC_uom"/> <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> </xpath>
</data> </data>