diff options
| author | Martin Trigaux <mat@odoo.com> | 2017-05-08 14:06:26 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2017-05-08 14:41:14 +0200 |
| commit | 5c009b5f3149b3221caa088605437b3c4debc726 (patch) | |
| tree | 51c8fc586728b17983b6b100c93ab981e42a6583 /addons/website_form/controllers | |
| parent | 65136589576f46a9469de8d522ed7a1b41ca5495 (diff) | |
[FIX] product,stock: create a company for non-admin users
The typical multi-company record rule is
['|',('company_id','child_of',[user.company_id.id]),('company_id','=',False)]
As the company is just created, the current user does not belong to the company.
Create first without company (to still check the access rights) and after add
the company in sudo
Can not apply the same patch for stock as locations and sublocations are created
based on the warehouse company.
Fixes #16807
Diffstat (limited to 'addons/website_form/controllers')
0 files changed, 0 insertions, 0 deletions
