update optical_equipment

This commit is contained in:
sinergia 2022-12-14 19:07:25 +00:00
parent d7ff8ac268
commit ac426e48d6
2 changed files with 2 additions and 1 deletions

View File

@ -302,7 +302,7 @@ class Maintenance(Workflow, ModelSQL, ModelView):
def view_attributes(cls):
return super(Maintenance, cls).view_attributes() + [
('//page[@id="preventive"]', 'states', {
'invisible': If(Eval('maintenance_type') != 'preventive', True),
'invisible': If(Eval('maintenance_type') == 'corrective', True),
}),
('//page[@id="corrective"]', 'states',{
'invisible': If(Eval('maintenance_type') != 'corrective', True),

View File

@ -3,6 +3,7 @@
this repository contains the full copyright notices and license terms.-->
<tree>
<field name="code"/>
<field name="maintenance_type"/>
<field name="propietary"/>
<field name="propietary_address"/>
<field name="sale_origin"/>