summaryrefslogtreecommitdiff
path: root/addons/website/static
diff options
context:
space:
mode:
authorfw-bot <otis@odoo.com>2020-10-06 12:30:20 +0000
committerMartin Trigaux <mat@odoo.com>2020-10-06 15:25:02 +0000
commitf3cc47f49acec2e5e1a6fa8b56a8766fb614458d (patch)
tree25203d09e5c96998a6dcc14ecb9bcab890509422 /addons/website/static
parent5f2cab5d94ffd605e161cde9636f0a2b3f26beb4 (diff)
[FIX] portal: share a record without partner_id field
The method _notify_get_groups is called to determine how a user should be notified based on the groups he belongs to. If a record is shared via portal but the model does not have a field named `partner_id`, the method was failing. With this patch, the presence of the field is checked first. No additional access_token is computed if the field is not present. Forward port of #59123 closes odoo/odoo#59304 X-original-commit: 6612c7ae766e996c57bda5c4c23132797f162f1e Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/website/static')
0 files changed, 0 insertions, 0 deletions