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"""