Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Problem with computed default values

by
ClosingAp Open Source Integrators Europe, LDA, Daniel Reis
- 11/04/2016 17: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


 

Reference