Skip to content
Snippets Groups Projects
Unverified Commit 1a685089 authored by Yenthe V.G's avatar Yenthe V.G Committed by Martin Trigaux
Browse files

[FIX] portal: untranslated error message

And specify which group is incorrect

Closes #17275
parent 42a3c664
Branches
Tags
No related merge requests found
......@@ -90,6 +90,12 @@ msgstr ""
msgid "Email"
msgstr ""
#. module: portal
#: code:addons/portal/wizard/portal_wizard.py:130
#, python-format
msgid "Group %s is not a portal"
msgstr ""
#. module: portal
#: model:ir.model.fields,field_description:portal.field_portal_wizard_id
#: model:ir.model.fields,field_description:portal.field_portal_wizard_user_id
......
......@@ -127,7 +127,7 @@ class PortalWizardUser(models.TransientModel):
for wizard_user in self.sudo().with_context(active_test=False):
group_portal = wizard_user.wizard_id.portal_id
if not group_portal.is_portal:
raise UserError('Not a portal: ' + group_portal.name)
raise UserError(_('Group %s is not a portal') % group_portal.name)
user = wizard_user.partner_id.user_ids[0] if wizard_user.partner_id.user_ids else None
# update partner email, if a new one was introduced
if wizard_user.partner_id.email != wizard_user.email:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment