I want to update state in model based on state in another model in odoo.
I try to update employee state in employee model:
where work_order_state= "pr