diff --git a/addons/portal/controllers/mail.py b/addons/portal/controllers/mail.py index 839a94c5..31d664f0 100644 --- a/addons/portal/controllers/mail.py +++ b/addons/portal/controllers/mail.py @@ -100,7 +100,7 @@ class PortalChatter(http.Controller): raise Forbidden() # Non-employee see only messages with not internal subtype (aka, no internal logs) if not request.env['res.users'].has_group('base.group_user'): - domain = expression.AND([['&', '&', ('subtype_id', '!=', False), ('subtype_id.internal', '=', False)], domain]) + domain = expression.AND([['&', ('subtype_id', '!=', False), ('subtype_id.internal', '=', False)], domain]) Message = request.env['mail.message'].sudo() return { 'messages': Message.search(domain, limit=limit, offset=offset).portal_message_format(), diff --git a/addons/portal/views/portal_templates.xml b/addons/portal/views/portal_templates.xml index 75d0dd58..7af40b11 100644 --- a/addons/portal/views/portal_templates.xml +++ b/addons/portal/views/portal_templates.xml @@ -10,6 +10,7 @@ is_website_user: , user_id: , is_frontend: true, + translationURL: '/website/translations', }; @@ -194,6 +195,21 @@ + +