Odoo Help

0

selection_remove

By
Thicham
on 6/3/16, 11:42 AM 248 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--
3133
| 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

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.

Register

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)

Stats

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