Contributors mailing list archives

contributors@odoo-community.org

Re: Problem with computed default values

by
ThinkOpen Solutions Portugal, Daniel Reis
- 11/04/2016 15:29:11

Salton, your simplification probably works, but Explicit is better than Implicit.
 

--DR


Citando Salton Massally <smassally@idtlabs.sl>:

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
 

_______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe