[IMP] stock_landed_costs: Set type=service for new landed cost products
Purpose ======= At the time of creating a Landed Cost , the product type should be 'Service' by default
This commit is contained in:
committed by
Yannick Tivisse
parent
7e4a445b9e
commit
3b1fbe5abc
@@ -54,7 +54,7 @@
|
||||
<tree string="Cost Lines" editable="bottom">
|
||||
<field name="product_id"
|
||||
domain="[('landed_cost_ok', '=', True)]"
|
||||
context="{'default_landed_cost_ok': True, 'form_view_ref':'stock_landed_costs.view_stock_landed_cost_type_form'}"/>
|
||||
context="{'default_landed_cost_ok': True, 'default_type': 'service', 'form_view_ref':'stock_landed_costs.view_stock_landed_cost_type_form'}"/>
|
||||
<field name="name"/>
|
||||
<field name="account_id"/>
|
||||
<field name="split_method"/>
|
||||
@@ -215,7 +215,7 @@
|
||||
<field name="domain">[('landed_cost_ok','=',True)]</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="context">{'default_landed_cost_ok': True}</field>
|
||||
<field name="context">{'default_landed_cost_ok': True, 'default_type': 'service'}</field>
|
||||
<field name="search_view_id" ref="product.product_search_form_view"/>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
|
||||
Reference in New Issue
Block a user