Re: [tryton-dev] How it let to write a field of a record just for create user not for others?

2012-08-25 Thread Oscar Alvarez
El 24/08/12 16:29, Cédric Krier escribió: On 24/08/12 13:06 -0700, oscar_alvarez wrote: Hi, Devs I need help wtih this problem, This is my try, but it doesn't work... :( efficacy = fields.Selection([ ('yes', 'Yes'), ('no', 'No'), ], 'Efficacy', states={

Re: [tryton-dev] How it let to write a field of a record just for create user not for others?

2012-08-24 Thread Cédric Krier
On 24/08/12 13:06 -0700, oscar_alvarez wrote: > > Hi, Devs > > I need help wtih this problem, > > This is my try, but it doesn't work... :( > > efficacy = fields.Selection([ > ('yes', 'Yes'), > ('no', 'No'), > ], 'Efficacy', states={ > '

[tryton-dev] How it let to write a field of a record just for create user not for others?

2012-08-24 Thread oscar_alvarez
Hi, Devs I need help wtih this problem, This is my try, but it doesn't work... :( efficacy = fields.Selection([ ('yes', 'Yes'), ('no', 'No'), ], 'Efficacy', states={ 'readonly': Eval('create_uid') != Eval('Transaction().user'),