Hi. I've created two custom fields in my sale.order model:
Order Prirority: Field Name: x_order_prirority, Field Type: selection, selection_ids (1 for '!', 2 for '!!', 3 for '!!!')
Rush: Field Name: x_rush, Field Type: boolean.
What I want to do is this: I placed these two fields on the sales order form, and when the priority is selected as "!!!", I want the Rush field would be checked.
I wrote these lines of codes in x_rush field compute area, and it gave me syntax error. I'm new to Python language.
Dependencies: x_order_prirority
Compute: for record in self:
if record ['x_order_prirority'] = 3 :
self = true
Any help? Thanks.