traductions module products
This commit is contained in:
parent
8400110fdb
commit
40846ec28b
10
product.py
10
product.py
@ -116,11 +116,11 @@ class Template(metaclass=PoolMeta):
|
|||||||
states={'invisible' : If(Eval('frequency') == None, True)},
|
states={'invisible' : If(Eval('frequency') == None, True)},
|
||||||
depends=['frequency']
|
depends=['frequency']
|
||||||
)
|
)
|
||||||
wet = fields.Float("Wet")
|
moisture = fields.Float("Moisture")
|
||||||
wet_uom = fields.Many2One('product.uom', "Wet UOM",
|
moisture_uom = fields.Many2One('product.uom', "Moisture UOM",
|
||||||
domain=[('category', '=', Id('optical_equipment', 'uom_cat_relative_humedity'))],
|
domain=[('category', '=', Id('optical_equipment', 'uom_cat_relative_humedity'))],
|
||||||
states={'invisible' : If(Eval('wet') == None, True)},
|
states={'invisible' : If(Eval('moisture') == None, True)},
|
||||||
depends=['wet']
|
depends=['moisture']
|
||||||
)
|
)
|
||||||
voltageAC = fields.Float("Voltage AC")
|
voltageAC = fields.Float("Voltage AC")
|
||||||
voltageAC_uom = fields.Many2One('product.uom', "Voltage AC UOM",
|
voltageAC_uom = fields.Many2One('product.uom', "Voltage AC UOM",
|
||||||
@ -155,7 +155,7 @@ class Template(metaclass=PoolMeta):
|
|||||||
return measurement
|
return measurement
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def default_wet_uom():
|
def default_moisture_uom():
|
||||||
pool = Pool()
|
pool = Pool()
|
||||||
Measurements = pool.get('product.uom')
|
Measurements = pool.get('product.uom')
|
||||||
measurement = Measurements.search(['name', '=', 'Relative Humedity'])[0].id
|
measurement = Measurements.search(['name', '=', 'Relative Humedity'])[0].id
|
||||||
|
@ -53,9 +53,9 @@ this repository contains the full copyright notices and license terms. -->
|
|||||||
<field name="temperature"/>
|
<field name="temperature"/>
|
||||||
<field name="temperature_uom"/>
|
<field name="temperature_uom"/>
|
||||||
|
|
||||||
<label name="wet"/>
|
<label name="moisture"/>
|
||||||
<field name="wet"/>
|
<field name="moisture"/>
|
||||||
<field name="wet_uom"/>
|
<field name="moisture_uom"/>
|
||||||
|
|
||||||
<separator id="electrical_conditions" string="Electrical Conditions" colspan="4"/>
|
<separator id="electrical_conditions" string="Electrical Conditions" colspan="4"/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user