diff --git a/beesdoo_shift/README.rst b/beesdoo_shift/README.rst index f6b85503b..db84096dc 100644 --- a/beesdoo_shift/README.rst +++ b/beesdoo_shift/README.rst @@ -47,6 +47,13 @@ Configuration Changelog ========= +12.0.1.1.4 (2022-05-26) +**Bugfixes** + +- When changing a regular worker to an irregular worker via the wizard, no longer + give an error when their (former) shift is full. (`#390 `_) + + 12.0.1.1.1 (2022-05-26) **Bugfixes** diff --git a/beesdoo_shift/__manifest__.py b/beesdoo_shift/__manifest__.py index ccae21128..9c9c75167 100644 --- a/beesdoo_shift/__manifest__.py +++ b/beesdoo_shift/__manifest__.py @@ -9,7 +9,7 @@ "author": "Thibault Francois, Elouan Le Bars, Coop IT Easy SCRLfs", "website": "https://github.com/beescoop/Obeesdoo", "category": "Cooperative management", - "version": "12.0.1.1.3", + "version": "12.0.1.1.4", "depends": ["mail"], "data": [ "data/system_parameter.xml", diff --git a/beesdoo_shift/readme/HISTORY.rst b/beesdoo_shift/readme/HISTORY.rst index c93561da4..7d480c953 100644 --- a/beesdoo_shift/readme/HISTORY.rst +++ b/beesdoo_shift/readme/HISTORY.rst @@ -1,3 +1,10 @@ +12.0.1.1.4 (2022-05-26) +**Bugfixes** + +- When changing a regular worker to an irregular worker via the wizard, no longer + give an error when their (former) shift is full. (`#390 `_) + + 12.0.1.1.1 (2022-05-26) **Bugfixes** diff --git a/beesdoo_shift/static/description/index.html b/beesdoo_shift/static/description/index.html index 1a2bccd2d..effa9dc64 100644 --- a/beesdoo_shift/static/description/index.html +++ b/beesdoo_shift/static/description/index.html @@ -372,19 +372,19 @@

Beescoop Shift Management

Table of contents

-

Configuration

+

Configuration

  • Translate cooperative status selection field, the terms to translate are:
-

Changelog

+

Changelog

+

12.0.1.1.4 (2022-05-26) +Bugfixes

+
    +
  • When changing a regular worker to an irregular worker via the wizard, no longer +give an error when their (former) shift is full. (#390)
  • +

12.0.1.1.1 (2022-05-26) Bugfixes

-

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 smashing it by providing a detailed and welcomed @@ -421,9 +427,9 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • Thibault Francois
  • Elouan Le Bars
  • @@ -431,14 +437,14 @@

    Authors

-

Contributors

+

Contributors

  • Beescoop - Cellule IT
  • Coop IT Easy SCRLfs
-

Maintainers

+

Maintainers

This module is part of the beescoop/obeesdoo project on GitHub.

You are welcome to contribute.

diff --git a/beesdoo_shift/wizard/subscribe.py b/beesdoo_shift/wizard/subscribe.py index beb708f95..c40d8e3ba 100644 --- a/beesdoo_shift/wizard/subscribe.py +++ b/beesdoo_shift/wizard/subscribe.py @@ -138,7 +138,11 @@ def unsubscribe(self): @api.multi def subscribe(self): self = self._check() - if self.shift_id and self.shift_id.remaining_worker <= 0: + if ( + self.shift_id + and self.working_mode == "regular" + and self.shift_id.remaining_worker <= 0 + ): raise UserError(_("There is no remaining spot in this shift")) # cleanup previous shift template subscriptions