Skip to content

Commit

Permalink
[FIX] mail: user signature
Browse files Browse the repository at this point in the history
- 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#30649
  • Loading branch information
nim-odoo committed Jan 29, 2019
1 parent 9e27647 commit a5edf7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/mail/data/mail_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@
Best regards,
</div>
<div>&amp;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>
Expand Down

0 comments on commit a5edf7e

Please sign in to comment.