[FIX] Move default value in the _defaults of model and not in default_get.
authorKersten Jeremy <jke@openerp.com>
Thu, 20 Mar 2014 18:02:40 +0000 (19:02 +0100)
committerKersten Jeremy <jke@openerp.com>
Thu, 20 Mar 2014 18:02:40 +0000 (19:02 +0100)
commit9bf6f0310e3eef2bb526ee09e01d1d402649f712
treeab1c880cb0d9ef3b3f8ddbba015c056ca9c8d218
parentbe81326ee3e5ed315ea9af8cda9ce47b60a6c4c0
[FIX] Move default value in the _defaults of model and not in default_get.
Don't override the location_id if the super get_default don't retrun a value.

Else it is impossible to set a default value, because the ir_values is always overrided with stock_location_stock as location_id

bzr revid: jke@openerp.com-20140320180240-un42lptu3pjnsmxq
addons/stock/wizard/stock_change_product_qty.py