Community mailing list archives

community@mail.odoo.com

attrs not "behaving" properly

by
Elmatica AS, Luis Alberto Panozzo
- 06/09/2016 12:13:58
I have a quotation that I need to send via email.
There is a field I want to make sure is populated before my customer gets the quotation
So the field has the following
attrs="{'required':[('state','=','sent')]}"

But the system still allows me to send and therefore the state changes without enforcing the condition.
Can anyone tell me what I am doing incorrect. 

BTW, the following has worked perfectly ok in the Opportunities flow (where we have several intermediate stages):
attrs="{'required':[('stage_id','=',9)]}"
Thank you in advance