The size constraint on the barcode pattern is an old one and is no more required. Moreover, if someone wants to add new GS1 patterns, he might need more than 32 characters. Part-of: odoo/odoo#82883
To prepare gs1-128 feature, refactors the check digit computation. Also, does some cleanings: - Removes unusused check_ean method; - Converts comments into docstrings; - Makes needed changes to avoid linter errors (PEP 8). task-1968113 Co-authored-by: ryv-odoo<ryv@odoo.com>
barcodes.py
Separates `barcode.nomenclature` and `barcode.rule` in their own file. task-1968113 Co-authored-by: ryv-odoo<ryv@odoo.com>