Odoo Help

Welcome!

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.

0

selection_remove

By
Thicham
on 6/3/16, 11:42 AM 158 views

Hi,

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) ?

0

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--Ahmed M.Elmubarak--


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

Hello,

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

Thanks

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

Thicham
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 6/3/16, 11:42 AM
Seen: 158 times
Last updated: 6/4/16, 7:51 AM