diff --git a/README.md b/README.md index ce511690f..5ab623eb7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ addon | version | maintainers | summary [event_mail](event_mail/) | 16.0.1.1.0 | | Mail settings in events [event_project](event_project/) | 16.0.1.0.1 | Shide rafaelbn | Event project [event_registration_mass_mailing](event_registration_mass_mailing/) | 16.0.1.0.1 | rafaelbn edlopen | Put event registrations emails into mailing lists -[event_registration_multi_qty](event_registration_multi_qty/) | 16.0.1.0.0 | | Allow registration grouped by quantities +[event_registration_multi_qty](event_registration_multi_qty/) | 16.0.1.0.1 | | Allow registration grouped by quantities [event_registration_partner_unique](event_registration_partner_unique/) | 16.0.1.0.0 | | Enforces 1 registration per partner and event [event_registration_qr_code](event_registration_qr_code/) | 16.0.1.0.0 | ivantodorovich | Automatically generate unique QR Codes for each registration [event_sale_registration_multi_qty](event_sale_registration_multi_qty/) | 16.0.1.0.0 | | Allows sell registrations with more than one attendee diff --git a/event_registration_multi_qty/README.rst b/event_registration_multi_qty/README.rst index cbcf1f47d..4cce03776 100644 --- a/event_registration_multi_qty/README.rst +++ b/event_registration_multi_qty/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ============================ Event Registration Multi Qty ============================ @@ -7,13 +11,13 @@ Event Registration Multi Qty !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:fceb9cbb6e691e4a975eb1a539e58833b4bf712ac8a4f98ee9e486c531e1915c + !! source digest: sha256:27d56a98f69e247e85f9c35ddca28b291743ce0e7d18da65fc53a7af506d7994 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fevent-lightgray.png?logo=github diff --git a/event_registration_multi_qty/__manifest__.py b/event_registration_multi_qty/__manifest__.py index 13a752ae3..e167be150 100644 --- a/event_registration_multi_qty/__manifest__.py +++ b/event_registration_multi_qty/__manifest__.py @@ -2,7 +2,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "Event Registration Multi Qty", - "version": "16.0.1.0.0", + "version": "16.0.1.0.1", "author": "Tecnativa, " "Odoo Community Association (OCA)", "license": "AGPL-3", "website": "https://github.com/OCA/event", diff --git a/event_registration_multi_qty/models/event.py b/event_registration_multi_qty/models/event.py index b994da436..f69b18f97 100644 --- a/event_registration_multi_qty/models/event.py +++ b/event_registration_multi_qty/models/event.py @@ -23,13 +23,17 @@ def _compute_seats(self): "seats_used": 0, "seats_available": 0, } - registrations = self.env["event.registration"].read_group( - [ - ("event_id", "=", event.id), - ("state", "in", ["draft", "open", "done"]), - ], - ["state", "qty"], - ["state"], + registrations = ( + self.env["event.registration"] + .sudo() + .read_group( + [ + ("event_id", "=", event.id), + ("state", "in", ["draft", "open", "done"]), + ], + ["state", "qty"], + ["state"], + ) ) for registration in registrations: if registration["state"] == "draft": diff --git a/event_registration_multi_qty/static/description/index.html b/event_registration_multi_qty/static/description/index.html index 37f1d5663..a684478c5 100644 --- a/event_registration_multi_qty/static/description/index.html +++ b/event_registration_multi_qty/static/description/index.html @@ -1,18 +1,18 @@ - -Event Registration Multi Qty +README.rst -
-

Event Registration Multi Qty

+
+ + +Odoo Community Association + +
+

Event Registration Multi Qty

-

Beta License: AGPL-3 OCA/event Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/event Translate me on Weblate Try me on Runboat

This module allows to make registration to events with more than one attendee.

This was the unique behavior on versions 8 and 9. As it’s useful for some use cases, this module allows both ways of registering attendees.

@@ -388,7 +393,7 @@

Event Registration Multi Qty

-

Configuration

+

Configuration

To configure the possibility of registering mutiple attendees:

  1. Go to Events > Events.
  2. @@ -397,7 +402,7 @@

    Configuration

-

Usage

+

Usage

For registering multiple attendees:

  1. Create an attendee for the created event.
  2. @@ -405,7 +410,7 @@

    Usage

-

Bug Tracker

+

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 @@ -413,15 +418,15 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Tecnativa
-

Maintainers

+

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

@@ -448,5 +455,6 @@

Maintainers

+