result=worked_days.Unpaid and worked_days.Unpaid.number_of_days or False
result = (contract.wage/30)*worked_days.Unpaid.number_of_days
after this codes in salary rules, no error in "compute sheet" but the salary rule is no longer seen in the "Salary computation". .. btw, im using odoo 9 for payroll