From 4ef1f8e052fd514be48d891cd6d19dfaa059172d Mon Sep 17 00:00:00 2001 From: Tejas Modi Date: Tue, 28 Mar 2023 13:02:02 +0000 Subject: [PATCH] [IMP] barcodes: removed the barcode name field size Due to GS1, now the barcode contains a lot more than a single identifier for an object (e.g. product, location,etc). Sometimes it contains a combination of multiple information. It's common now to have a size greater than 32 that we remove the parameter. TaskID - 3150983 Part-of: odoo/odoo#116799 --- addons/barcodes/models/barcode_nomenclature.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/barcodes/models/barcode_nomenclature.py b/addons/barcodes/models/barcode_nomenclature.py index 80fde2748b8..b5272e2915a 100644 --- a/addons/barcodes/models/barcode_nomenclature.py +++ b/addons/barcodes/models/barcode_nomenclature.py @@ -16,7 +16,7 @@ class BarcodeNomenclature(models.Model): _name = 'barcode.nomenclature' _description = 'Barcode Nomenclature' - name = fields.Char(string='Barcode Nomenclature', size=32, required=True, help='An internal identification of the barcode nomenclature') + name = fields.Char(string='Barcode Nomenclature', required=True, help='An internal identification of the barcode nomenclature') rule_ids = fields.One2many('barcode.rule', 'barcode_nomenclature_id', string='Rules', help='The list of barcode rules') upc_ean_conv = fields.Selection( UPC_EAN_CONVERSIONS, string='UPC/EAN Conversion', required=True, default='always',