diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2019-01-29 12:20:59 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2019-01-29 12:22:29 +0000 |
| commit | a5edf7ec09b3aebf0e63d78e10db763059937682 (patch) | |
| tree | 2e589efc7401081007425d8caa4ccf94bdabf670 | |
| parent | 9e276477ce79a12d3558469edfc9c38a112e0536 (diff) | |
[FIX] mail: user signature
- Install Invoicing
- Multi company Set up with no common contact book
- Create & validate an invoice with user A in company 1
- Change to company 2 with user A
- Connect with user B in company 1
- Send & Print the invoice
An error is raised on the template rendering because user B cannot read
info from user A.
opw-1928676
closes odoo/odoo#30649
| -rw-r--r-- | addons/mail/data/mail_data.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 55cf1c15cb8..b65ddd02efa 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -264,8 +264,8 @@ Best regards, </div> <div>&nbsp;</div> - <div t-if="record.user_id and record.user_id.signature" style="font-size: 13px;"> - <div t-raw="record.user_id.signature"/> + <div t-if="record.user_id and record.user_id.sudo().signature" style="font-size: 13px;"> + <div t-raw="record.user_id.sudo().signature"/> </div> </td> </tr> |
