Context default maintenance type added

This commit is contained in:
projectsodoo 2020-12-08 11:01:29 +05:30
parent 5057288b39
commit 12c27baff4
12 changed files with 3 additions and 3 deletions

View File

@ -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>