diff --git a/portal_event_tickets/README.rst b/portal_event_tickets/README.rst index a598537..743172a 100644 --- a/portal_event_tickets/README.rst +++ b/portal_event_tickets/README.rst @@ -17,7 +17,7 @@ Customer Event Portal :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-it--projects--llc%2Fwebsite--addons-lightgray.png?logo=github - :target: https://github.com/it-projects-llc/website-addons/tree/14.0/portal_event_tickets + :target: https://github.com/it-projects-llc/website-addons/tree/17.0/portal_event_tickets :alt: it-projects-llc/website-addons |badge1| |badge2| |badge3| @@ -125,7 +125,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -149,6 +149,6 @@ Contributors Maintainers ----------- -This module is part of the `it-projects-llc/website-addons `_ project on GitHub. +This module is part of the `it-projects-llc/website-addons `_ project on GitHub. You are welcome to contribute. diff --git a/portal_event_tickets/__manifest__.py b/portal_event_tickets/__manifest__.py index ee7e0e1..0df8c80 100644 --- a/portal_event_tickets/__manifest__.py +++ b/portal_event_tickets/__manifest__.py @@ -3,7 +3,7 @@ "summary": """Allows to customers see their tickets for events at the Portal""", "category": "Marketing", "images": ["images/banner.jpg"], - "version": "14.0.1.0.0", + "version": "17.0.1.0.0", "author": "IT-Projects LLC", "support": "apps@it-projects.info", "website": "https://github.com/it-projects-llc/website-addons", diff --git a/portal_event_tickets/controllers/main.py b/portal_event_tickets/controllers/main.py index d90ddf8..5754854 100644 --- a/portal_event_tickets/controllers/main.py +++ b/portal_event_tickets/controllers/main.py @@ -16,7 +16,7 @@ class PortalEvent(CustomerPortal): def _prepare_home_portal_values(self, counters): - values = super(PortalEvent, self)._prepare_home_portal_values(counters) + values = super()._prepare_home_portal_values(counters) if "tickets_count" in counters: domain = self._tickets_domain() values["tickets_count"] = ( @@ -34,7 +34,7 @@ def _tickets_domain(self, partner=None): @http.route() def account(self, *args, **kw): """Add sales documents to main account page""" - response = super(PortalEvent, self).account(*args, **kw) + response = super().account(*args, **kw) domain = self._tickets_domain() tickets_count = request.env["event.registration"].search_count(domain) @@ -332,7 +332,7 @@ def ticket_change(self, ticket_id, **kw): class WebsiteSaleExtended(WebsiteSale): @http.route() def cart(self, **post): - response = super(WebsiteSaleExtended, self).cart(**post) + response = super().cart(**post) if post.get("total_is_negative"): response.qcontext.update( { diff --git a/portal_event_tickets/models/event.py b/portal_event_tickets/models/event.py index 4d9ae2a..9ba5e46 100644 --- a/portal_event_tickets/models/event.py +++ b/portal_event_tickets/models/event.py @@ -35,4 +35,4 @@ def check_partner_for_new_ticket(self, partner_id): # False means no errors return False - return super(Event, self).check_partner_for_new_ticket(partner_id) + return super().check_partner_for_new_ticket(partner_id) diff --git a/portal_event_tickets/models/event_mail.py b/portal_event_tickets/models/event_mail.py index 4716e4b..b48d54f 100644 --- a/portal_event_tickets/models/event_mail.py +++ b/portal_event_tickets/models/event_mail.py @@ -51,6 +51,7 @@ def _compute_scheduled_date(self): rself.scheduled_date = datetime.strptime( date, tools.DEFAULT_SERVER_DATETIME_FORMAT ) + _INTERVALS[rself.interval_unit](sign * rself.interval_nbr) + return True def execute(self, registration=None): for rself in self: @@ -104,3 +105,4 @@ def _compute_scheduled_date(self): ](rself.scheduler_id.interval_nbr) else: rself.scheduled_date = False + return True diff --git a/portal_event_tickets/models/sale_order.py b/portal_event_tickets/models/sale_order.py index 5a1a2e3..53d93ec 100644 --- a/portal_event_tickets/models/sale_order.py +++ b/portal_event_tickets/models/sale_order.py @@ -9,7 +9,7 @@ class SaleOrderLine(models.Model): _inherit = "sale.order.line" def _cancel_line(self, origin=None): - res = super(SaleOrderLine, self)._cancel_line(origin=origin) + res = super()._cancel_line(origin=origin) tickets = self.env["event.registration"].search( [ diff --git a/portal_event_tickets/tests/common.py b/portal_event_tickets/tests/common.py index b28e955..9863eb8 100644 --- a/portal_event_tickets/tests/common.py +++ b/portal_event_tickets/tests/common.py @@ -6,7 +6,7 @@ class TourCase(HttpCase): def setUp(self): - super(TourCase, self).setUp() + super().setUp() # create Event self.event = self.env["event.event"].create(