diff --git a/sequence_check_digit/README.rst b/sequence_check_digit/README.rst index 922b2a6e58..ce09ef1d00 100644 --- a/sequence_check_digit/README.rst +++ b/sequence_check_digit/README.rst @@ -17,13 +17,13 @@ Check Digit on Sequences :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github - :target: https://github.com/OCA/server-ux/tree/14.0/sequence_check_digit + :target: https://github.com/OCA/server-ux/tree/16.0/sequence_check_digit :alt: OCA/server-ux .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-ux-14-0/server-ux-14-0-sequence_check_digit + :target: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-sequence_check_digit :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=14.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=16.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -61,7 +61,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. @@ -92,6 +92,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/server-ux `_ project on GitHub. +This module is part of the `OCA/server-ux `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sequence_check_digit/__manifest__.py b/sequence_check_digit/__manifest__.py index 1e1c9a5a59..b448f1d7e0 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": "16.0.1.0.0", "category": "Reporting", "website": "https://github.com/OCA/server-ux", "author": "Creu Blanca, Odoo Community Association (OCA)", diff --git a/sequence_check_digit/models/ir_sequence.py b/sequence_check_digit/models/ir_sequence.py index fbbf8e8562..f2e8682db9 100644 --- a/sequence_check_digit/models/ir_sequence.py +++ b/sequence_check_digit/models/ir_sequence.py @@ -36,18 +36,18 @@ class IrSequence(models.Model): def check_check_digit_formula(self): try: self.get_next_char(0) - except Exception: - raise ValidationError(_("Format is not accepted")) + except Exception as err: + raise ValidationError(_("Format is not accepted")) from err def get_check_digit(self, code): try: return self.get_formula_map()[self.check_digit_formula](code) - except KeyError: + except KeyError as err: raise ValidationError( _("%s is not an implemented function" % self.check_digit_formula) - ) - except Exception: - raise ValidationError(_("Format is not accepted")) + ) from err + except Exception as err: + raise ValidationError(_("Format is not accepted")) from err def get_formula_map(self): return { diff --git a/sequence_check_digit/static/description/index.html b/sequence_check_digit/static/description/index.html index 625e2abdc1..4e99d2a052 100644 --- a/sequence_check_digit/static/description/index.html +++ b/sequence_check_digit/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,7 +369,7 @@

Check Digit on Sequences

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:5db701b9975da7631dba73d9136c3b7a5ea51ca47ba3da1e9a3fb4fdbfc12299 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/server-ux Translate me on Weblate Try me on Runboat

+

Beta License: LGPL-3 OCA/server-ux Translate me on Weblate Try me on Runboat

This module was written to configure check digits on sequences added on the end. It is useful as a control of the number on visual validation.

It is useful when some manual checks are required or on integrations. @@ -415,7 +415,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.

@@ -436,11 +436,13 @@

Contributors

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.

-

This module is part of the OCA/server-ux project on GitHub.

+

This module is part of the OCA/server-ux project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.