Skip to content

Commit

Permalink
Merge PR #987 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Jan 7, 2025
2 parents 5b21126 + 9ee63ad commit c6f31da
Show file tree
Hide file tree
Showing 18 changed files with 1,053 additions and 0 deletions.
97 changes: 97 additions & 0 deletions sequence_check_digit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
========================
Check Digit on Sequences
========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5db701b9975da7631dba73d9136c3b7a5ea51ca47ba3da1e9a3fb4fdbfc12299
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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-LGPL--3-blue.png
: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/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-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=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

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.
The implemented codes can avoid modification of one character and flip of
two consecutive characters.

**Table of contents**

.. contents::
:local:

Usage
=====

* Access sequences and configurate the model to use.
* The model will check if the format of prefix, suffix and number is valid
* Implemented algorithms
* Luhn: [0-9]*
* Damm: [0-9]*
* Verhoeff: [0-9]*
* ISO 7064 Mod 11, 2: [0-9]*
* ISO 7064 Mod 11, 10: [0-9]*
* ISO 7064 Mod 37, 2: [0-9A-Z]*
* ISO 7064 Mod 37, 36: [0-9A-Z]*
* ISO 7064 Mod 97, 10: [0-9A-Z]*

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/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 <https://github.com/OCA/server-ux/issues/new?body=module:%20sequence_check_digit%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Creu Blanca

Contributors
~~~~~~~~~~~~

* Enric Tobella <[email protected]>
* Sunanda Chhatbar <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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 <https://github.com/OCA/server-ux/tree/16.0/sequence_check_digit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions sequence_check_digit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

from . import models
16 changes: 16 additions & 0 deletions sequence_check_digit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright (C) 2017 Creu Blanca
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).

{
"name": "Check Digit on Sequences",
"version": "16.0.1.0.0",
"category": "Reporting",
"website": "https://github.com/OCA/server-ux",
"author": "Creu Blanca, Odoo Community Association (OCA)",
"license": "LGPL-3",
"installable": True,
"application": False,
"summary": "Adds a check digit on sequences",
"depends": ["base"],
"data": ["views/sequence_views.xml"],
}
104 changes: 104 additions & 0 deletions sequence_check_digit/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sequence_check_digit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-09-28 10:14+0000\n"
"PO-Revision-Date: 2018-07-13 08:48+0000\n"
"Last-Translator: Enric Tobella <[email protected]>\n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.0.1\n"

#. module: sequence_check_digit
#: code:addons/sequence_check_digit/models/ir_sequence.py:0
#, python-format
msgid "%s is not an implemented function"
msgstr "%s no es una función implementada"

#. module: sequence_check_digit
#: model:ir.model.fields,field_description:sequence_check_digit.field_ir_sequence__check_digit_formula
msgid "Check Digit Formula"
msgstr "Fórmula del Dígito de control"

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__damm
msgid "Damm"
msgstr "Damm"

#. module: sequence_check_digit
#: model:ir.model.fields,field_description:sequence_check_digit.field_ir_sequence__display_name
msgid "Display Name"
msgstr ""

#. module: sequence_check_digit
#: code:addons/sequence_check_digit/models/ir_sequence.py:0
#, python-format
msgid "Format is not accepted"
msgstr "El formato no está aceptado"

#. module: sequence_check_digit
#: model:ir.model.fields,field_description:sequence_check_digit.field_ir_sequence__id
msgid "ID"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_11_10
msgid "ISO 7064 Mod 11, 10"
msgstr "ISO 7064 Mod 11, 10"

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_11_2
msgid "ISO 7064 Mod 11, 2"
msgstr "ISO 7064 Mod 11, 2"

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_37_2
msgid "ISO 7064 Mod 37, 2"
msgstr "ISO 7064 Mod 37, 2"

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_37_36
msgid "ISO 7064 Mod 37, 36"
msgstr "ISO 7064 Mod 37, 36"

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_97_10
msgid "ISO 7064 Mod 97, 10"
msgstr "ISO 7064 Mod 97, 10"

#. module: sequence_check_digit
#: model:ir.model.fields,field_description:sequence_check_digit.field_ir_sequence____last_update
msgid "Last Modified on"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__luhn
msgid "Luhn"
msgstr "Luhn"

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__none
msgid "None"
msgstr "Ninguno"

#. module: sequence_check_digit
#: model:ir.model,name:sequence_check_digit.model_ir_sequence
#, fuzzy
msgid "Sequence"
msgstr "ir.sequence"

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__verhoeff
msgid "Verhoeff"
msgstr "Verhoeff"

#~ msgid "Function not found"
#~ msgstr "Función no encontrada"
98 changes: 98 additions & 0 deletions sequence_check_digit/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sequence_check_digit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"

#. module: sequence_check_digit
#: code:addons/sequence_check_digit/models/ir_sequence.py:0
#, python-format
msgid "%s is not an implemented function"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields,field_description:sequence_check_digit.field_ir_sequence__check_digit_formula
msgid "Check Digit Formula"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__damm
msgid "Damm"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields,field_description:sequence_check_digit.field_ir_sequence__display_name
msgid "Display Name"
msgstr ""

#. module: sequence_check_digit
#: code:addons/sequence_check_digit/models/ir_sequence.py:0
#: code:addons/sequence_check_digit/models/ir_sequence.py:0
#, python-format
msgid "Format is not accepted"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields,field_description:sequence_check_digit.field_ir_sequence__id
msgid "ID"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_11_10
msgid "ISO 7064 Mod 11, 10"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_11_2
msgid "ISO 7064 Mod 11, 2"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_37_2
msgid "ISO 7064 Mod 37, 2"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_37_36
msgid "ISO 7064 Mod 37, 36"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__iso7064_97_10
msgid "ISO 7064 Mod 97, 10"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields,field_description:sequence_check_digit.field_ir_sequence____last_update
msgid "Last Modified on"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__luhn
msgid "Luhn"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__none
msgid "None"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model,name:sequence_check_digit.model_ir_sequence
msgid "Sequence"
msgstr ""

#. module: sequence_check_digit
#: model:ir.model.fields.selection,name:sequence_check_digit.selection__ir_sequence__check_digit_formula__verhoeff
msgid "Verhoeff"
msgstr ""
Loading

0 comments on commit c6f31da

Please sign in to comment.