help="""Install the module that allows to affect landed costs on pickings, and split them onto the different products."""),
}
+
+ def onchange_landed_costs(self, cr, uid, ids, module_landed_costs, context=None):
+ if module_landed_costs:
+ return {'value': {'group_stock_inventory_valuation': True}}
+ return {}
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
<label for="module_stock_invoice_directly"/>
</div>
<div>
- <field name="module_stock_landed_costs" class="oe_inline"/>
+ <field name="module_stock_landed_costs" on_change="onchange_landed_costs(module_stock_landed_costs)" class="oe_inline"/>
<label for="module_stock_landed_costs"/>
</div>
</div>