diff --git a/requirements.txt b/requirements.txt index 5f267f8cae..2186a97932 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ # generated from manifests external_dependencies pdf2image -python-stdnum pyzbar diff --git a/sequence_check_digit/__manifest__.py b/sequence_check_digit/__manifest__.py index a582829a06..effb4e2b65 100644 --- a/sequence_check_digit/__manifest__.py +++ b/sequence_check_digit/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Check Digit on Sequences", - "version": "14.0.1.0.2", + "version": "15.0.1.0.0", "category": "Reporting", "website": "https://github.com/OCA/server-ux", "author": "Creu Blanca, Odoo Community Association (OCA)", @@ -13,5 +13,4 @@ "summary": "Adds a check digit on sequences", "depends": ["base"], "data": ["views/sequence_views.xml"], - "external_dependencies": {"python": ["python-stdnum"]}, } diff --git a/sequence_check_digit/models/ir_sequence.py b/sequence_check_digit/models/ir_sequence.py index fbbf8e8562..7e1672992b 100644 --- a/sequence_check_digit/models/ir_sequence.py +++ b/sequence_check_digit/models/ir_sequence.py @@ -37,17 +37,17 @@ def check_check_digit_formula(self): try: self.get_next_char(0) except Exception: - raise ValidationError(_("Format is not accepted")) + raise ValidationError(_("Format is not accepted")) from None def get_check_digit(self, code): try: return self.get_formula_map()[self.check_digit_formula](code) except KeyError: raise ValidationError( - _("%s is not an implemented function" % self.check_digit_formula) - ) + _("%s is not an implemented function") % self.check_digit_formula + ) from None except Exception: - raise ValidationError(_("Format is not accepted")) + raise ValidationError(_("Format is not accepted")) from None def get_formula_map(self): return {