I am trying to define a salary rule in Odoo 9 Payroll.
The rule condition has to be based on the employee's country. I tried the python expression code below but it does not work.
result = (employee.country_id=="Malaysia") or False
This should work:
result = (employee.country_id.name == "Malaysia") or False