summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorWilliam Henrotin <whe@odoo.com>2018-04-09 11:49:26 +0200
committerOlivier Dony <odo@odoo.com>2018-06-18 16:51:13 +0200
commitc5789be063c4c83df58673b749a18e4eadd97c58 (patch)
tree6726ef480fb638d4afd84312908c6b4659709609 /addons/web/static/src/js/fields/basic_fields.js
parent819cc0e642e4381f3bfb600e7e8aa4767f2fa76e (diff)
[IMP] crm: fix companies and bypass checks in partners merge
Facing the following cases, only the database admin can merge res_partners: 1. The email addresses are different. 2. The origin contact(s) is (are) linked to some account move lines. This commit adds a kwarg in the merge function. This argument allows to skip the two tests. So they can be bypassed when overloading the function (depending of the current user access rights for instance) in order to merge partners even if they have different email addresses or with account move lines on the origin one. It can also be called programatically and bypass the checks. This commit also makes the merge wizard correct any inconsistence in the allowed companies/currency company of the merged contacts and the related user(s). Closes #24376
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions