diff --git a/event_registration_partner_unique/i18n/es.po b/event_registration_partner_unique/i18n/es.po index 6129ccf52..efb805cb3 100644 --- a/event_registration_partner_unique/i18n/es.po +++ b/event_registration_partner_unique/i18n/es.po @@ -29,8 +29,8 @@ msgstr "" #. module: event_registration_partner_unique #: code:addons/event_registration_partner_unique/models/event.py:0 #, python-format -msgid "Duplicated partners found in event {0}: {1}." -msgstr "Empresas duplicadas encontradas en el evento {0}: {1}." +msgid "Duplicated partners found in event %(name)s: %(partners)s." +msgstr "Empresas duplicadas encontradas en el evento %(name)s: %(partners)s." #. module: event_registration_partner_unique #: model:ir.model,name:event_registration_partner_unique.model_event_event diff --git a/event_registration_partner_unique/i18n/event_registration_partner_unique.pot b/event_registration_partner_unique/i18n/event_registration_partner_unique.pot index 566ff1077..6a99b90f9 100644 --- a/event_registration_partner_unique/i18n/event_registration_partner_unique.pot +++ b/event_registration_partner_unique/i18n/event_registration_partner_unique.pot @@ -23,7 +23,7 @@ msgstr "" #. module: event_registration_partner_unique #: code:addons/event_registration_partner_unique/models/event.py:0 #, python-format -msgid "Duplicated partners found in event {0}: {1}." +msgid "Duplicated partners found in event %(name)s: %(partners)s." msgstr "" #. module: event_registration_partner_unique diff --git a/event_registration_partner_unique/i18n/it.po b/event_registration_partner_unique/i18n/it.po index 71fbc2178..a070783b2 100644 --- a/event_registration_partner_unique/i18n/it.po +++ b/event_registration_partner_unique/i18n/it.po @@ -28,8 +28,8 @@ msgstr "" #. module: event_registration_partner_unique #: code:addons/event_registration_partner_unique/models/event.py:0 #, python-format -msgid "Duplicated partners found in event {0}: {1}." -msgstr "Trovati partner duplicati nell'evento {0}: {1}." +msgid "Duplicated partners found in event %(name)s: %(partners)s." +msgstr "Trovati partner duplicati nell'evento %(name)s: %(partners)s." #. module: event_registration_partner_unique #: model:ir.model,name:event_registration_partner_unique.model_event_event diff --git a/event_registration_partner_unique/models/event.py b/event_registration_partner_unique/models/event.py index 6ecaeee16..3ed3fa9ca 100644 --- a/event_registration_partner_unique/models/event.py +++ b/event_registration_partner_unique/models/event.py @@ -33,13 +33,14 @@ def _check_forbid_duplicates(self): dupes = self.search(event_reg._duplicate_search_domain()) if dupes: raise ValidationError( - _("Duplicated partners found in event {0}: {1}.").format( - event_reg.event_id.display_name, - ", ".join( + _("Duplicated partners found in event %(name)s: %(partners)s.") + % { + "name": event_reg.event_id.display_name, + "partners": ", ".join( partner_id.display_name for partner_id in dupes.mapped("attendee_partner_id") ), - ) + } ) def _duplicate_search_domain(self): diff --git a/website_event_sale_cart_quantity_readonly/__init__.py b/website_event_sale_cart_quantity_readonly/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/website_event_snippet_calendar/templates/embed.xml b/website_event_snippet_calendar/templates/embed.xml index f521567a2..a9a7ace4e 100644 --- a/website_event_snippet_calendar/templates/embed.xml +++ b/website_event_snippet_calendar/templates/embed.xml @@ -8,6 +8,7 @@ name="Events Calendar and List" inherit_id="website.layout" primary="True" + priority="999" >