From c4055299c3437e071bf1ff816d192e767c3a271e Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Fri, 23 Dec 2016 13:22:55 +0100 Subject: [PATCH] [IMP] product: add field 'barcode' on packaging We add a field allowing to set a barcode on the product packaging. --- addons/product/models/product.py | 1 + addons/product/views/product_views.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/addons/product/models/product.py b/addons/product/models/product.py index 63fac183442..92ac868376b 100644 --- a/addons/product/models/product.py +++ b/addons/product/models/product.py @@ -578,6 +578,7 @@ class ProductPackaging(models.Model): sequence = fields.Integer('Sequence', default=1, help="The first in the sequence is the default one.") product_id = fields.Many2one('product.product', string='Product') qty = fields.Float('Quantity per Package', help="The total number of products you can have per pallet or box.") + barcode = fields.Char('Barcode', copy=False, help="Barcode used for packaging identification.") class SuppliferInfo(models.Model): diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index 4766c18c734..db8786e77fb 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -470,6 +470,7 @@ +