diff options
| author | jem-odoo <jem@openerp.com> | 2019-08-22 06:50:14 +0000 |
|---|---|---|
| committer | jem-odoo <jem@openerp.com> | 2019-08-22 06:51:01 +0000 |
| commit | 0133426ec72f71116501d0e9f605757a8f5f3f13 (patch) | |
| tree | f65e672ed7c8e211ff061755a37629fe21819f6b /addons/web/static/src/js/views/basic/basic_model.js | |
| parent | 2137e45bb5e5bd28e6f14a1c4b269d1e63b4f7ab (diff) | |
[IMP] sale_expense: employee can see all name_get of Sales Order
As f871908e86dc868a7d2fb1d2dff6cae0fb79977c wants to allow simple empoyee
to select any SO on which the expense should be reinvoice, we need a little
adjustement. Indeed, before this commit, the ir.rule of current user are
still apply (bad comprehension of `name_get_uid` parameter), so a salesman
will only be alble to reinvoice on its own SO while an employee can do the
same on any SO.
This commit fixes this strange use case with rco's advice to make this
mecanism work in a cleaner way.
To restrict this `name_search` done in `sudo`, we apply a context key, and
an hardcoded domain (combine with a AND) to minimize the divulgation.
Also, we want the saleman to be able to open and see the SO.
Task-1843241
closes odoo/odoo#35938
Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions
