diff --git a/product_barcode/README.rst b/product_barcode/README.rst old mode 100644 new mode 100755 diff --git a/product_barcode/__init__.py b/product_barcode/__init__.py old mode 100644 new mode 100755 index 63c68c069..aff9bd361 --- a/product_barcode/__init__.py +++ b/product_barcode/__init__.py @@ -19,5 +19,4 @@ # If not, see . # ############################################################################# - from . import models diff --git a/product_barcode/__manifest__.py b/product_barcode/__manifest__.py old mode 100644 new mode 100755 diff --git a/product_barcode/doc/RELEASE_NOTES.md b/product_barcode/doc/RELEASE_NOTES.md old mode 100644 new mode 100755 diff --git a/product_barcode/models/__init__.py b/product_barcode/models/__init__.py old mode 100644 new mode 100755 diff --git a/product_barcode/models/product_form.py b/product_barcode/models/product_form.py old mode 100644 new mode 100755 index 15c92d1fd..4c05022b1 --- a/product_barcode/models/product_form.py +++ b/product_barcode/models/product_form.py @@ -32,7 +32,7 @@ class ProductAutoBarcode(models.Model): """generate barcode when create new product""" res = super(ProductAutoBarcode, self).create(vals) ean = generate_ean(str(res.id)) - res.barcode = '21' + ean[2:] + res.barcode = '21' + ean return res @@ -89,5 +89,5 @@ class ProductTemplateAutoBarcode(models.Model): """generate barcode number when create new product""" templates = super(ProductTemplateAutoBarcode, self).create(vals_list) ean = generate_ean(str(templates.id)) - templates.barcode = '22' + ean[2:] + templates.barcode = '22' + ean return templates diff --git a/product_barcode/static/description/assets/icons/check.png b/product_barcode/static/description/assets/icons/check.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/chevron.png b/product_barcode/static/description/assets/icons/chevron.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/cogs.png b/product_barcode/static/description/assets/icons/cogs.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/consultation.png b/product_barcode/static/description/assets/icons/consultation.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/ecom-black.png b/product_barcode/static/description/assets/icons/ecom-black.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/education-black.png b/product_barcode/static/description/assets/icons/education-black.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/hotel-black.png b/product_barcode/static/description/assets/icons/hotel-black.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/license.png b/product_barcode/static/description/assets/icons/license.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/lifebuoy.png b/product_barcode/static/description/assets/icons/lifebuoy.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/manufacturing-black.png b/product_barcode/static/description/assets/icons/manufacturing-black.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/pos-black.png b/product_barcode/static/description/assets/icons/pos-black.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/puzzle.png b/product_barcode/static/description/assets/icons/puzzle.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/restaurant-black.png b/product_barcode/static/description/assets/icons/restaurant-black.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/service-black.png b/product_barcode/static/description/assets/icons/service-black.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/trading-black.png b/product_barcode/static/description/assets/icons/trading-black.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/training.png b/product_barcode/static/description/assets/icons/training.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/update.png b/product_barcode/static/description/assets/icons/update.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/user.png b/product_barcode/static/description/assets/icons/user.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/icons/wrench.png b/product_barcode/static/description/assets/icons/wrench.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/categories.png b/product_barcode/static/description/assets/misc/categories.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/check-box.png b/product_barcode/static/description/assets/misc/check-box.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/compass.png b/product_barcode/static/description/assets/misc/compass.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/corporate.png b/product_barcode/static/description/assets/misc/corporate.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/customer-support.png b/product_barcode/static/description/assets/misc/customer-support.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/cybrosys-logo.png b/product_barcode/static/description/assets/misc/cybrosys-logo.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/features.png b/product_barcode/static/description/assets/misc/features.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/logo.png b/product_barcode/static/description/assets/misc/logo.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/pictures.png b/product_barcode/static/description/assets/misc/pictures.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/pie-chart.png b/product_barcode/static/description/assets/misc/pie-chart.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/right-arrow.png b/product_barcode/static/description/assets/misc/right-arrow.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/star.png b/product_barcode/static/description/assets/misc/star.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/support.png b/product_barcode/static/description/assets/misc/support.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/misc/whatsapp.png b/product_barcode/static/description/assets/misc/whatsapp.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/modules/1.png b/product_barcode/static/description/assets/modules/1.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/modules/2.png b/product_barcode/static/description/assets/modules/2.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/modules/3.png b/product_barcode/static/description/assets/modules/3.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/modules/4.png b/product_barcode/static/description/assets/modules/4.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/modules/5.gif b/product_barcode/static/description/assets/modules/5.gif old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/modules/6.png b/product_barcode/static/description/assets/modules/6.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/screenshots/1.png b/product_barcode/static/description/assets/screenshots/1.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/screenshots/2.png b/product_barcode/static/description/assets/screenshots/2.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/assets/screenshots/hero.gif b/product_barcode/static/description/assets/screenshots/hero.gif old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/banner.png b/product_barcode/static/description/banner.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/icon.png b/product_barcode/static/description/icon.png old mode 100644 new mode 100755 diff --git a/product_barcode/static/description/index.html b/product_barcode/static/description/index.html old mode 100644 new mode 100755