Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Problem with computed default values

by
Salton Massally
- 11/04/2016 16:13:06
Hello Daniel,

That is a strange one; however If UUID is automatically converted to string can you simply do?

token = fields.Char('Token', default=uuid.uuid4)



On 11 Apr 2016, at 15:08, Daniel Reis <dgreis@sapo.pt> wrote:

uuid.uuid4

Reference