In a enterprise edition on odoo.sh I did a automated function using new id adding 1000000000000 to generate a number for barcodes and was working until last week. Now I tried to override create function setting with new id, didn't work, and using random number and also didn't work but in my community version always set it no matter what method I'm using. Can any help me to know what's happening?
My code to override:
@api.model
def create(self,vals):
vals['barcode'] = randint(1000000007000,9999999999999)
return super(productAuto,self).create(vals)