Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3826 Visualizzazioni

With function field, how can I save the value of the field unless the object is not in draft mode ?

Avatar
Abbandona

Please do not post duplicate questions. See http://help.openerp.com/question/5522/function-field/

Risposta migliore

Hi,

I never tested with argument store, but should work, try :

in file view add this attribute in field :

attrs="{'store': [('state', '=', 'draft')]}"

update module and view.

naturally field state must be present as a field or in context.

Bye

Avatar
Abbandona