Add the diopter field
This commit is contained in:
parent
13cc3b6e3e
commit
517cc3a58e
@ -402,6 +402,7 @@ class Maintenance(Workflow, ModelSQL, ModelView):
|
||||
|
||||
if maintenance.equipment.product.resolution_type == "analoga":
|
||||
calibrationLineTotal = CalibrationLineTotal(
|
||||
diopter=pattern,
|
||||
dev_std=dev_std,
|
||||
uncertain_type_A=uncertain_type_A,
|
||||
uncertain_pattern=uncertain_pattern,
|
||||
@ -421,6 +422,7 @@ class Maintenance(Workflow, ModelSQL, ModelView):
|
||||
|
||||
elif maintenance.equipment.product.resolution_type == "digital":
|
||||
calibrationLineTotal = CalibrationLineTotal(
|
||||
diopter=pattern,
|
||||
dev_std=dev_std,
|
||||
uncertain_type_A=uncertain_type_A,
|
||||
uncertain_pattern=uncertain_pattern,
|
||||
@ -447,6 +449,7 @@ class Calibration(ModelSQL, ModelView):
|
||||
|
||||
maintenance = fields.Many2One('optical_equipment.maintenance', "Maintenance", ondelete="CASCADE",
|
||||
select=True, required=True)
|
||||
diopter = fields.Float("Diopter", states=_states)
|
||||
dev_std = fields.Float("Standart Desviation", states=_states)
|
||||
uncertain_type_A = fields.Float("Uncertain Type A", states=_states)
|
||||
uncertain_pattern = fields.Float("Uncertain Pattern", states=_states)
|
||||
|
@ -2,6 +2,8 @@
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="diopter"/>
|
||||
<field name="diopter"/>
|
||||
<label name="dev_std"/>
|
||||
<field name="dev_std"/>
|
||||
<label name="uncertain_type_A"/>
|
||||
|
@ -2,6 +2,7 @@
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tree>
|
||||
<field name="diopter" expand="1"/>
|
||||
<field name="dev_std" expand="1"/>
|
||||
<field name="uncertain_type_A" expand="1"/>
|
||||
<field name="uncertain_pattern" expand="1"/>
|
||||
|
Loading…
Reference in New Issue
Block a user