Context default maintenance type added
This commit is contained in:
parent
5057288b39
commit
12c27baff4
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -23,15 +23,15 @@
|
|||
<field name="currency_id" invisible="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="line_ids" context="{'default_maintenance_id':1}" colspan="4" nolabel="1" widget="one2many">
|
||||
<field name="line_ids" colspan="4" nolabel="1" widget="one2many">
|
||||
<tree editable="top">
|
||||
<field name="maintenance_id" domain="[('maintenance_type_id','=',parent.maintenance_type_id)]"/>
|
||||
<field name="maintenance_id" context="{'default_maintenance_type_id':parent.maintenance_type_id}" domain="[('maintenance_type_id','=',parent.maintenance_type_id)]"/>
|
||||
<field name="cost" widget="monetary" options="{'currency_field':'currency_id'}"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</tree>
|
||||
<form>
|
||||
<group>
|
||||
<field name="maintenance_id" domain="[('maintenance_type_id','=',parent.maintenance_type_id)]"/>
|
||||
<field name="maintenance_id" context="{'default_maintenance_type_id':parent.maintenance_type_id}" domain="[('maintenance_type_id','=',parent.maintenance_type_id)]"/>
|
||||
<field name="cost" widget="monetary" options="{'currency_field':'currency_id'}"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</group>
|
||||
|
|
Loading…
Reference in New Issue