Rename method

This commit is contained in:
Alexis de Lattre
2017-11-23 10:29:57 +01:00
parent 2f63e4e7a6
commit cc5291ba52

View File

@@ -23,7 +23,7 @@ class ProductProduct(models.Model):
'This barcode already exists!')]
@api.constrains('second_barcode')
def _check_second_ean13(self):
def _check_second_barcode(self):
for product in self:
if product.second_barcode and not product.barcode:
raise ValidationError(_(