nb_attachment == 0 or state != 'approved' or refund_in_payslipnb_attachment >= 1 or state != 'approved' or refund_in_payslipstate not in ('submitted', 'approved') or refund_in_payslipstate != 'draft' or product_has_cost or refund_in_payslipstate in ('in_payment', 'paid', 'refused', 'posted') or product_has_cost or refund_in_payslipReport in Next Payslipactionlist,kanbancode
records.action_report_in_next_payslip()