view asigned serials
This commit is contained in:
parent
569db4ba4b
commit
ebf2dd372e
12
equipment.py
12
equipment.py
@ -39,12 +39,12 @@ class OpticalEquipment(Workflow, ModelSQL, ModelView):
|
|||||||
)
|
)
|
||||||
refurbish = fields.Boolean("Refurbish",
|
refurbish = fields.Boolean("Refurbish",
|
||||||
states={'readonly': Eval('state') != 'draft',},)
|
states={'readonly': Eval('state') != 'draft',},)
|
||||||
equipment_type = fields.Char('type', readonly=True)
|
equipment_type = fields.Char('type', states={'readonly': If('product', True)})
|
||||||
risk = fields.Char('Type risk',readonly=True)
|
risk = fields.Char('Type risk',states={'readonly': If('product', True)})
|
||||||
use = fields.Char('Use', readonly=True)
|
use = fields.Char('Use', states={'readonly': If('product', True)})
|
||||||
biomedical_class = fields.Char('Biomedical Class', readonly=True)
|
biomedical_class = fields.Char('Biomedical Class', states={'readonly': If('product', True)})
|
||||||
main_tecnology = fields.Char('Main tecnology', readonly=True)
|
main_tecnology = fields.Char('Main tecnology', states={'readonly': If('product', True)})
|
||||||
calibration = fields.Boolean("Apply calibration", readonly=True)
|
calibration = fields.Boolean("Apply calibration", states={'readonly': If('product', True)})
|
||||||
mark_category = fields.Many2One('product.category', 'Mark', required=True,
|
mark_category = fields.Many2One('product.category', 'Mark', required=True,
|
||||||
domain=[('parent', '=', None),
|
domain=[('parent', '=', None),
|
||||||
('accounting', '=', False)],
|
('accounting', '=', False)],
|
||||||
|
@ -87,12 +87,49 @@
|
|||||||
action="act_optical_equipment_form"
|
action="act_optical_equipment_form"
|
||||||
sequence="20"
|
sequence="20"
|
||||||
id="menu_optical_equipment_form"/>
|
id="menu_optical_equipment_form"/>
|
||||||
|
<menuitem
|
||||||
|
name="Serials"
|
||||||
|
sequence="20"
|
||||||
|
id="menu_equipment_serial"/>
|
||||||
|
<record model="ir.action.act_window" id="act_optical_equipment_form1">
|
||||||
|
<field name="name">Serials</field>
|
||||||
|
<field name="res_model">optical_equipment.equipment</field>
|
||||||
|
<field name="search_value"></field>
|
||||||
|
</record>
|
||||||
|
<record model="ir.ui.view" id="optical_equipment_view_tree1">
|
||||||
|
<field name="model">optical_equipment.equipment</field>
|
||||||
|
<field name="type">tree</field>
|
||||||
|
<field name="name">optical_equipment_serial_tree</field>
|
||||||
|
</record>
|
||||||
|
<record model="ir.action.act_window.view" id="act_optical_equipment_view3">
|
||||||
|
<field name="sequence" eval="10"/>
|
||||||
|
<field name="view" ref="optical_equipment_view_tree1"/>
|
||||||
|
<field name="act_window" ref="act_optical_equipment_form1"/>
|
||||||
|
</record>
|
||||||
|
<record model="ir.action.act_window.domain" id="act_optical_equipment_serial_form_domain_draft">
|
||||||
|
<field name="name">Draft</field>
|
||||||
|
<field name="sequence" eval="10"/>
|
||||||
|
<field name="domain"
|
||||||
|
eval="[('state', '=', 'draft')]"
|
||||||
|
pyson="1"/>
|
||||||
|
<field name="count" eval="True"/>
|
||||||
|
<field name="act_window" ref="act_optical_equipment_form1"/>
|
||||||
|
</record>
|
||||||
|
<menuitem parent="menu_equipment"
|
||||||
|
action="act_optical_equipment_form1"
|
||||||
|
sequence="30"
|
||||||
|
id="menu_optical_equipment_serial_form"/>
|
||||||
|
|
||||||
<record model="ir.ui.menu-res.group"
|
<record model="ir.ui.menu-res.group"
|
||||||
id="menu_party_group_equipment_admin">
|
id="menu_party_group_equipment_admin">
|
||||||
<field name="menu" ref="menu_equipment"/>
|
<field name="menu" ref="menu_equipment"/>
|
||||||
<field name="group" ref="group_equipment_admin"/>
|
<field name="group" ref="group_equipment_admin"/>
|
||||||
</record>
|
</record>
|
||||||
|
<record model="ir.ui.menu-res.group"
|
||||||
|
id="menu_party_group_equipment_admin1">
|
||||||
|
<field name="menu" ref="menu_equipment_serial"/>
|
||||||
|
<field name="group" ref="group_equipment_admin"/>
|
||||||
|
</record>
|
||||||
<record model="ir.sequence.type" id="sequence_type_equipment">
|
<record model="ir.sequence.type" id="sequence_type_equipment">
|
||||||
<field name="name">Equipment</field>
|
<field name="name">Equipment</field>
|
||||||
</record>
|
</record>
|
||||||
|
20
locale/es.po
20
locale/es.po
@ -6,6 +6,10 @@ msgctxt "view:product.template:"
|
|||||||
msgid "Features"
|
msgid "Features"
|
||||||
msgstr "Características"
|
msgstr "Características"
|
||||||
|
|
||||||
|
msgctxt "view:product.template:"
|
||||||
|
msgid "Calibration"
|
||||||
|
msgstr "Calibración"
|
||||||
|
|
||||||
msgctxt "view:product.template:"
|
msgctxt "view:product.template:"
|
||||||
msgid "Measurements of Equipment"
|
msgid "Measurements of Equipment"
|
||||||
msgstr "Medidas del Equipo"
|
msgstr "Medidas del Equipo"
|
||||||
@ -105,3 +109,19 @@ msgstr "Vida útil"
|
|||||||
msgctxt "field:product.template,warranty:"
|
msgctxt "field:product.template,warranty:"
|
||||||
msgid "Warranty"
|
msgid "Warranty"
|
||||||
msgstr "Garantía"
|
msgstr "Garantía"
|
||||||
|
|
||||||
|
msgctxt "field:product.template,uncertainy_pattern:"
|
||||||
|
msgid "Uncertainy Pattern"
|
||||||
|
msgstr "Patrón de Incertidumbre"
|
||||||
|
|
||||||
|
msgctxt "field:product.template,k_pattern:"
|
||||||
|
msgid "K Pattern"
|
||||||
|
msgstr "Patrón K"
|
||||||
|
|
||||||
|
msgctxt "field:product.template,d_resolution:"
|
||||||
|
msgid "Resolution d"
|
||||||
|
msgstr "Resolución (d)"
|
||||||
|
|
||||||
|
msgctxt "field:product.template,analog_resolution:"
|
||||||
|
msgid "Analog resolution"
|
||||||
|
msgstr "Resolución Analoga"
|
||||||
|
10
product.py
10
product.py
@ -146,6 +146,16 @@ class Template(metaclass=PoolMeta):
|
|||||||
useful_life = fields.Integer("Useful life")
|
useful_life = fields.Integer("Useful life")
|
||||||
warranty = fields.Integer("Warranty")
|
warranty = fields.Integer("Warranty")
|
||||||
|
|
||||||
|
#### calibration parameters
|
||||||
|
|
||||||
|
uncertainy_pattern = fields.Char("Uncertainy Pattern",
|
||||||
|
help="Agregar valores separados por ',' Ej:-5,+5,-10,+10")
|
||||||
|
k_pattern = fields.Char("K Pattern",
|
||||||
|
help="Agregar valores separados por ',' Ej:-5,+5,-10,+10")
|
||||||
|
d_resolution = fields.Integer("Resolution d")
|
||||||
|
analog_resolution = fields.Integer("Analog resolution")
|
||||||
|
Usubi = fields.Integer("Usub i")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@fields.depends('temperature')
|
@fields.depends('temperature')
|
||||||
def default_temperature_uom(self):
|
def default_temperature_uom(self):
|
||||||
|
@ -47,6 +47,21 @@ this repository contains the full copyright notices and license terms. -->
|
|||||||
<newline/>
|
<newline/>
|
||||||
<label name="calibration"/>
|
<label name="calibration"/>
|
||||||
<field name="calibration"/>
|
<field name="calibration"/>
|
||||||
|
<newline/>
|
||||||
|
<label name="uncertainy_pattern"/>
|
||||||
|
<field name="uncertainy_pattern"/>
|
||||||
|
<newline/>
|
||||||
|
<label name="k_pattern"/>
|
||||||
|
<field name="k_pattern"/>
|
||||||
|
<newline/>
|
||||||
|
<label name="d_resolution"/>
|
||||||
|
<field name="d_resolution"/>
|
||||||
|
<newline/>
|
||||||
|
<label name="analog_resolution"/>
|
||||||
|
<field name="analog_resolution"/>
|
||||||
|
<newline/>
|
||||||
|
<label name="Usubi"/>
|
||||||
|
<field name="Usubi"/>
|
||||||
</page>
|
</page>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="/form/notebook/page[@id='measurements']/label[@name='length']" position="before">
|
<xpath expr="/form/notebook/page[@id='measurements']/label[@name='length']" position="before">
|
||||||
|
Loading…
Reference in New Issue
Block a user