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)},
|
||||
depends=['frequency']
|
||||
)
|
||||
wet = fields.Float("Wet")
|
||||
wet_uom = fields.Many2One('product.uom', "Wet UOM",
|
||||
moisture = fields.Float("Moisture")
|
||||
moisture_uom = fields.Many2One('product.uom', "Moisture UOM",
|
||||
domain=[('category', '=', Id('optical_equipment', 'uom_cat_relative_humedity'))],
|
||||
states={'invisible' : If(Eval('wet') == None, True)},
|
||||
depends=['wet']
|
||||
states={'invisible' : If(Eval('moisture') == None, True)},
|
||||
depends=['moisture']
|
||||
)
|
||||
voltageAC = fields.Float("Voltage AC")
|
||||
voltageAC_uom = fields.Many2One('product.uom', "Voltage AC UOM",
|
||||
@ -155,7 +155,7 @@ class Template(metaclass=PoolMeta):
|
||||
return measurement
|
||||
|
||||
@staticmethod
|
||||
def default_wet_uom():
|
||||
def default_moisture_uom():
|
||||
pool = Pool()
|
||||
Measurements = pool.get('product.uom')
|
||||
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_uom"/>
|
||||
|
||||
<label name="wet"/>
|
||||
<field name="wet"/>
|
||||
<field name="wet_uom"/>
|
||||
<label name="moisture"/>
|
||||
<field name="moisture"/>
|
||||
<field name="moisture_uom"/>
|
||||
|
||||
<separator id="electrical_conditions" string="Electrical Conditions" colspan="4"/>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user