update optical_equipment
This commit is contained in:
parent
d7ff8ac268
commit
ac426e48d6
@ -302,7 +302,7 @@ class Maintenance(Workflow, ModelSQL, ModelView):
|
|||||||
def view_attributes(cls):
|
def view_attributes(cls):
|
||||||
return super(Maintenance, cls).view_attributes() + [
|
return super(Maintenance, cls).view_attributes() + [
|
||||||
('//page[@id="preventive"]', 'states', {
|
('//page[@id="preventive"]', 'states', {
|
||||||
'invisible': If(Eval('maintenance_type') != 'preventive', True),
|
'invisible': If(Eval('maintenance_type') == 'corrective', True),
|
||||||
}),
|
}),
|
||||||
('//page[@id="corrective"]', 'states',{
|
('//page[@id="corrective"]', 'states',{
|
||||||
'invisible': If(Eval('maintenance_type') != 'corrective', True),
|
'invisible': If(Eval('maintenance_type') != 'corrective', True),
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
this repository contains the full copyright notices and license terms.-->
|
this repository contains the full copyright notices and license terms.-->
|
||||||
<tree>
|
<tree>
|
||||||
<field name="code"/>
|
<field name="code"/>
|
||||||
|
<field name="maintenance_type"/>
|
||||||
<field name="propietary"/>
|
<field name="propietary"/>
|
||||||
<field name="propietary_address"/>
|
<field name="propietary_address"/>
|
||||||
<field name="sale_origin"/>
|
<field name="sale_origin"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user