summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorShreya Modi <smo@odoo.com>2019-01-16 12:15:47 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-21 13:28:03 +0000
commitaf80c68ae50159d21977692c6d283c4067254edd (patch)
tree48536d5ce801308da9a7157a83ac5ae24be90aaa /addons/web/static/src/js/views/basic/basic_model.js
parent109f390756aabf2c13784d679f00761927066e80 (diff)
[IMP] mail: improve create_uid heuristics in mail gateway
PURPOSE Currently mailgateway runner user is used to create most documents through incoming emails. Purpose of this commit is to try to link document creation and update to users, using the email to make the matching. SPECIFICATIONS New sudo implementation allow to bypass access rights while keeping effective user as creator. Use this mechanism to create documents still using the mailgateway runner user while linking creator to matching user. Heuristic to use to match email_from and users * if route is linked to an alias: check its owner record and check in its followers; * find users having this emails; * if route is linked to an alias: use alias_user_id field; * fallback on mailgateway user; Other side effect is that creator and author of incoming email linked to the new record will now better match the document creator when linked to an existing user. LINKS Task 1919267 PR #30597 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions