I am trying to write a salary rule with a condition so that if the condition is not satisfied system skips that salary rule. but whenever I am putting the condition it gives "Odoo Warning - Validation Error Wrong python condition defined for salary rule". I am sure the format I am using is correct. See below.
result = if(contract.state != 'Draft' and contract.start_date > payslip.date_from): or false |
Please use a meaningful title.