Skip to content

Commit

Permalink
[FIX] *: Linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Oct 28, 2023
1 parent 5e923d1 commit fe4ae2c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions event_registration_partner_unique/i18n/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions event_registration_partner_unique/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions event_registration_partner_unique/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Empty file.
1 change: 1 addition & 0 deletions website_event_snippet_calendar/templates/embed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
name="Events Calendar and List"
inherit_id="website.layout"
primary="True"
priority="999"
>
<!-- Replace the whole page to include only the snippet -->
<xpath expr="//div[@id='wrapwrap']" position="replace">
Expand Down

0 comments on commit fe4ae2c

Please sign in to comment.