diff options
| author | Akim Juillerat <akim.juillerat@camptocamp.com> | 2018-03-16 12:12:30 +0100 |
|---|---|---|
| committer | Martin Trigaux <564822+mart-e@users.noreply.github.com> | 2018-03-16 12:12:30 +0100 |
| commit | c4a11cb42a4a3f3f49c2024fb2b081d638e383b0 (patch) | |
| tree | 58f0b2f48b50874edd54037f2996f7504cd97814 /doc/reference | |
| parent | 3bf9cf4f36e036495e3b1e54a77eadf39a1ccee2 (diff) | |
[FIX] stock: use correct warehouse name in multicompany
At stock installation, the warehouse0 has the name of the first company found
(order "sequence, name"), while the comapny_id field is
`_company_default_get('stock.inventory')` (the company of the user installing
the stock module).
In a multi-company environment, it is possible than both results are different
and having name = 'Company A' and company_id = 'Company B'.
Use the name of the default company as default value for the field name.
Note that 'stock.inventory' is not needed in _company_default_get call but
kept to match the default of company_id (in case of override).
Using a default on the field will impact all the future records but should,
hopefully, not be problematic as it is a valid default value.
Closes #19563
Diffstat (limited to 'doc/reference')
0 files changed, 0 insertions, 0 deletions
