Odoo Help


This community 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.


store value with function field

on 3/12/13, 12:28 PM 861 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.


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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