Avoids to do a RPC if the nomenclature is direclty passed through the arguments while the barcode parser is initiate. Also, makes the `load` method always returns a promise. closes odoo/odoo#72685 Related: odoo/upgrade#2713 Related: odoo/enterprise#19226 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
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>
In anticipation of refactoring, adds some tests to be sure all still keep working as it should do. task-1968113 Co-authored-by: ryv-odoo<ryv@odoo.com>