Community mailing list archives
best way to generate a fieldby
i need to generate automatically two fields (ean13 and default_code) on the product_product model.
The default code is generated by a sequence, and the ean13 is generated from a random number plus the default code. All is conditioned by the fact that the suppliers_ids field should be present.
I'm using odoo8.0.
I would be glad to hear your suggestion to know what is the best way to do this.
Thanks in advance