From 98f7085a85ae0a16a7390f0a31acda99b10bf8f7 Mon Sep 17 00:00:00 2001 From: Sreejith P Date: Wed, 6 Jun 2018 17:41:08 +0530 Subject: [PATCH] [RMV] Init Removed --- product_barcode/models/product_form.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/product_barcode/models/product_form.py b/product_barcode/models/product_form.py index f74f62a07..953300d5f 100644 --- a/product_barcode/models/product_form.py +++ b/product_barcode/models/product_form.py @@ -16,12 +16,6 @@ class ProductAutoBarcode(models.Model): res.barcode = ean return res - def init(self): - products = self.env['product.product'].search([]) - for product in products: - ean = generate_ean(str(product.id)) - product.barcode = ean - def ean_checksum(eancode): """returns the checksum of an ean string of length 13, returns -1 if the string has the wrong length"""