[FIX] stock: multicompany warehouse creation
authorMartin Trigaux <mat@openerp.com>
Thu, 11 Sep 2014 09:25:36 +0000 (11:25 +0200)
committerMartin Trigaux <mat@openerp.com>
Thu, 11 Sep 2014 11:31:16 +0000 (13:31 +0200)
commitd6fd96d0e9930647edc164ccff4cba1754e28543
treec241c6e69af0c32c82cc25ba595e1ceb6d1f224f
parent980d23f98b6eeb9784b92f59dc452e3e304d159b
[FIX] stock: multicompany warehouse creation

When creating a new warehouse, the linked locations should have the same company as the warehouse.
The company_id field is required on warehouse (not necessary in vals as could be added by default values) while it is not for stock.location (meaning global location, also filled with default value).
addons/stock/stock.py