Odoo Help


store value with function field

on 3/12/13, 12:28 PM 1,299 views

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

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

Andreas Brueckl
on 3/12/13, 5:34 PM

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--

| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 3/12/13, 5:24 PM


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.


About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/12/13, 12:28 PM
Seen: 1299 times
Last updated: 3/16/15, 8:10 AM