Odoo Help



on 6/3/16, 11:42 AM 208 views


I wanted to overwrite the state field in sale order so that i add new values and delete existing ones.

for adding i used the attribute selection_add  and it works fine. but for deleting it does not.

state = fields.Selection(selection_add=[('a','AA'),('b','BB')],  selection_remove=['draft'])

is this the correct syntax to do that (deleting i mean) ?


Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 6/4/16, 7:51 AM


I think there is no param called selection_remove, you check here


Thank you ahmed for your response. I guessed so too.

on 6/6/16, 5:02 PM

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 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: 6/3/16, 11:42 AM
Seen: 208 times
Last updated: 6/4/16, 7:51 AM