OCA / stock-logistics-barcode

https://odoo-community.org/psc-teams/logistics-18
GNU Affero General Public License v3.0
158 stars 324 forks source link

[16.0][FIX] barcodes_generator_abstract: get the real integer code for all coding types #535

Closed RodrigoBM closed 10 months ago

RodrigoBM commented 10 months ago

if you use for example the gs1-128 coding, this coding cannot be saved in odoo directly.

import barcode EAN = barcode.get_barcode_class('gs1_128') str(EAN('0000')) 'ñ0000'

We have to call the function get_fullcode which is a code that we can save in Odoo.

import barcode EAN = barcode.get_barcode_class('gs1_128') str(EAN('0000').get_fullcode()) '0000'

OCA-git-bot commented 10 months ago

Hi @legalsylvain, some modules you are maintaining are being modified, check this out!

legalsylvain commented 10 months ago

/ocabot merge patch

OCA-git-bot commented 10 months ago

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 16.0-ocabot-merge-pr-535-by-legalsylvain-bump-patch, awaiting test results.

OCA-git-bot commented 10 months ago

Congratulations, your PR was merged at 1ded5260089f0fb1a3b33d00967ebdc2cf7c7005. Thanks a lot for contributing to OCA. ❤️