delete view address_equipment
This commit is contained in:
parent
a5c58d104e
commit
04d7041be7
@ -30,7 +30,7 @@ class Maintenance(Workflow, ModelSQL, ModelView):
|
|||||||
estimated_agended = fields.DateTime("Date Maintenance")
|
estimated_agended = fields.DateTime("Date Maintenance")
|
||||||
technical = fields.Many2One('company.employee')
|
technical = fields.Many2One('company.employee')
|
||||||
|
|
||||||
maintenance_lines = fields.One2Many('optical_equipment.maintenance.line', 'maintenance',
|
maintenance_lines = fields.One2Many('optical_equipment.maintenance.line', 'maintenance_activity',
|
||||||
'Maintenance Lines', states={
|
'Maintenance Lines', states={
|
||||||
'readonly': Eval('state') != 'draft',})
|
'readonly': Eval('state') != 'draft',})
|
||||||
|
|
||||||
@ -85,12 +85,8 @@ class MaintenanceLine(ModelSQL, ModelView):
|
|||||||
'Maintenance Line'
|
'Maintenance Line'
|
||||||
__name__ = 'optical_equipment.maintenance.line'
|
__name__ = 'optical_equipment.maintenance.line'
|
||||||
|
|
||||||
maintenance_acitivity = fields.Many2One('product.product', 'Product',
|
maintenance = fields.Many2One('optical_equipment.maintenance', 'Maintenance', ondelete='CASCADE', select=True)
|
||||||
|
maintenance_activity = fields.Many2One('product.product', 'Maintenance activity',
|
||||||
ondelete='RESTRICT',
|
ondelete='RESTRICT',
|
||||||
domain=[If(Eval('state').in_(['draft']),
|
domain=[If(Eval('state').in_(['draft']),
|
||||||
('maintenance_activity', '=', True),()),])
|
('maintenance_activity', '=', True),()),])
|
||||||
|
|
||||||
maintenance_acitivity = fields.Many2One('product.product', 'Product',
|
|
||||||
ondelete='RESTRICT',
|
|
||||||
domain=[If(Eval('state').in_(['draft']),
|
|
||||||
('replacement', '=', True),()),])
|
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
<xpath
|
<xpath
|
||||||
expr="/form/notebook/page[@id='notes']" position="before">
|
expr="/form/notebook/page[@id='notes']" position="before">
|
||||||
<page string="Equipment" id="equipment">
|
<page string="Equipment" id="equipment">
|
||||||
<label name="address_equipment"/>
|
|
||||||
<field name="address_equipment"/>
|
|
||||||
</page>
|
</page>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath
|
<xpath
|
||||||
|
Loading…
Reference in New Issue
Block a user