Community mailing list archives

Re: best way to generate a field

Ludwik Trammer
- 01/27/2015 05:46:39

Looks like a job for computed fields (provided you don't intend to be able to later edit them by hand independently of the fields they were generated from).

Computed fields documentation:


On Tue Jan 27 2015 at 10:52:06 AM Fabrizio Mancini <> wrote:
Hi everyone,
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

Post to: