diff --git a/account_move_reconcile_forbid_cancel/README.rst b/account_move_reconcile_forbid_cancel/README.rst index cce810c1..07fd02aa 100644 --- a/account_move_reconcile_forbid_cancel/README.rst +++ b/account_move_reconcile_forbid_cancel/README.rst @@ -14,13 +14,13 @@ Account Move Reconcile Forbid Cancel :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github - :target: https://github.com/OCA/account-reconcile/tree/13.0/account_move_reconcile_forbid_cancel + :target: https://github.com/OCA/account-reconcile/tree/15.0/account_move_reconcile_forbid_cancel :alt: OCA/account-reconcile .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-reconcile-13-0/account-reconcile-13-0-account_move_reconcile_forbid_cancel + :target: https://translation.odoo-community.org/projects/account-reconcile-15-0/account-reconcile-15-0-account_move_reconcile_forbid_cancel :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/98/13.0 + :target: https://runbot.odoo-community.org/runbot/98/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -50,7 +50,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 smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -83,6 +83,6 @@ 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. -This module is part of the `OCA/account-reconcile `_ project on GitHub. +This module is part of the `OCA/account-reconcile `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_move_reconcile_forbid_cancel/__manifest__.py b/account_move_reconcile_forbid_cancel/__manifest__.py index 85245587..ee7b11ea 100644 --- a/account_move_reconcile_forbid_cancel/__manifest__.py +++ b/account_move_reconcile_forbid_cancel/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Account Move Reconcile Forbid Cancel", - "version": "13.0.1.0.2", + "version": "15.0.1.0.0", "category": "Finance", "website": "https://github.com/OCA/account-reconcile", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/account_move_reconcile_forbid_cancel/models/account_move.py b/account_move_reconcile_forbid_cancel/models/account_move.py index e734cfcf..ed3e8201 100644 --- a/account_move_reconcile_forbid_cancel/models/account_move.py +++ b/account_move_reconcile_forbid_cancel/models/account_move.py @@ -23,7 +23,7 @@ class AccountMove(models.Model): raise ValidationError( _("You cannot reset to draft reconciled entries.") ) - super().button_draft() + return super().button_draft() def button_cancel(self): if not self.env.context.get("skip_reconcile_forbid_cancel") and ( @@ -33,4 +33,4 @@ class AccountMove(models.Model): rec_pay_lines = self._get_receivable_payable_lines() if rec_pay_lines.matched_debit_ids or rec_pay_lines.matched_credit_ids: raise ValidationError(_("You cannot cancel reconciled entries.")) - super().button_cancel() + return super().button_cancel() diff --git a/account_move_reconcile_forbid_cancel/static/description/index.html b/account_move_reconcile_forbid_cancel/static/description/index.html index 0052cb2c..5c50f05d 100644 --- a/account_move_reconcile_forbid_cancel/static/description/index.html +++ b/account_move_reconcile_forbid_cancel/static/description/index.html @@ -3,7 +3,7 @@ - + Account Move Reconcile Forbid Cancel