[IMP] stock_landed_costs : If we create a product from Cost Lines, Can constitute a landed cost should be True.

bzr revid: mdi@tinyerp.com-20140421093157-x2b1vhip6mjslfij
This commit is contained in:
DJ Patel 2014-04-21 15:01:57 +05:30
parent a741e8df8e
commit 567103bb92
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
<group>
<group>
<field name="product_id"
on_change="onchange_product_id(product_id)" domain="[('landed_cost_ok', '=', True)]"/>
on_change="onchange_product_id(product_id)" domain="[('landed_cost_ok', '=', True)]" context="{'default_landed_cost_ok': True}"/>
<field name="price_unit"/>
</group>
<group>
@ -48,7 +48,7 @@
<field name="name"/>
</form>
<tree string="Cost Lines" editable="bottom">
<field name="product_id" on_change="onchange_product_id(product_id)" domain="[('landed_cost_ok', '=', True)]"/>
<field name="product_id" on_change="onchange_product_id(product_id)" domain="[('landed_cost_ok', '=', True)]" context="{'default_landed_cost_ok': True}"/>
<field name="name"/>
<field name="account_id"/>
<field name="split_method"/>