diff --git a/addons/sale/controllers/portal.py b/addons/sale/controllers/portal.py index bb0e0647316..061a7d0194c 100644 --- a/addons/sale/controllers/portal.py +++ b/addons/sale/controllers/portal.py @@ -130,7 +130,7 @@ class CustomerPortal(portal.CustomerPortal): # The "Quotation viewed by customer" log note is an information # dedicated to the salesman and shouldn't be translated in the customer/website lgg context = {'lang': order_sudo.user_id.partner_id.lang or order_sudo.company_id.partner_id.lang} - msg = _('Quotation viewed by customer %s', order_sudo.partner_id.name) + msg = _('Quotation viewed by customer %s', order_sudo.partner_id.name if request.env.user._is_public() else request.env.user.partner_id.name) del context _message_post_helper( "sale.order",