diff options
| author | Hiral Bhavsar <hbh@odoo.com> | 2019-08-23 10:23:29 +0000 |
|---|---|---|
| committer | Hiral Bhavsar <hbh@odoo.com> | 2019-08-29 12:56:24 +0000 |
| commit | 1d2559ce64085eb9fbd8422f8d88e18bc3dce344 (patch) | |
| tree | 43d09355b770bd58739fdbcebd6c1da51fe50b0b /addons/web/static/src/js/views/basic | |
| parent | 4242ddd7a8e5b979a3dc679dacd8e5c29edb4c2b (diff) | |
[IMP] sale_expense, web: hide 'search more..' from m2o dropdown
Purpose
========
In expense, we now allow any simple employee (no sales access rights) to
select sales order. Technically, the name_search is done in sudo mode,
to allow simply fetching the name_get of record.
The problem is that the m2o field widget displays the "search more"
option and click on that will open a modal executing a "search_read"
which is causing access error as the user doesn't have read access on
SO.
As we want to restrict the visible information from the SO(only name_get)
to all user, we can't hack the search_read too.
Specification
=============
To prevent user frustration, we need to remove the "search more" option.
Thus, make a private function which one have 'search more..' option
related stuff and create a new widget for sale_expense, override that
function which one is returing values as it is without any modification.
task-2057714
closes odoo/odoo#36152
Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
