CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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) ?
About This Community
Odoo Training Center
|Asked: 6/3/16, 11:42 AM|
|Seen: 319 times|
|Last updated: 6/4/16, 7:51 AM|