diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2017-08-02 13:04:16 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2017-08-02 14:04:35 +0200 |
| commit | ce8c3af3a962ecace21a35cb33656c663f9842f7 (patch) | |
| tree | e153cfbffcd6fc546bd33db14e7f77f06cbdc73e /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | b335ae0348ac74b2edb6d5ea56cc230e276ef283 (diff) | |
[FIX] base: default company on rate
- Activate multi-company
- Company B is parent of Company A
- Admin is in Company A
- Demo is in Company B
- Create a rate with Demo
The rate is recorded on Company A, not Company B as expected.
This is because we call: `self.env.user._get_company()` which would be
equivalent to `self.env.user.env.user.company_id`. Since the user is
browsed as `sudo`, it returns the company of the Admin.
opw-753139
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
