diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2016-11-03 16:15:34 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2016-11-23 09:32:18 +0100 |
| commit | 54d091448b3d4d6c1878ef463e47a0f4b18b4e2b (patch) | |
| tree | fac475bb21093f0db6a2e89fb714ebbeae1f8439 /addons/web/static/src/js/views/basic | |
| parent | 6a18e31ceef455a59dd8e035aa38451abe390e86 (diff) | |
[FIX] sale, website_portal_sale: see portal button
With a9bd9ab1 the access action was refined depending on the user.
But when sending a mail about a sale order, this lead to an issue since
a mail template is rendered with the current user and not the mail
recipients.
So in the case of a sale order, the recipient could not have a button
leading to /my/orders/{order_id} whilst he should have, because the
user used to render the mail was the sender (which was an employee and
not a share user).
This commit adds a context key "force_website" which force the action to
an available /my/orders even if the sender is not a share user.
opw-691040
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions
