Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3462 Visninger

Happy new year to everybody.

i want to get the net amount to pay to the employee in a costum field i have just created. I am not developper but i creat a function field in the hr.payslip model and write this function but it is not working

 

 

def _get_payslip_net(self, cr, uid, ids, name, args, context):
        if not ids: return {}
        res = {}
        for line in line_ids.browse(cr, uid, ids, context=context):
            if line.code=="NET":
                res[line.id] = line.total
        return res

 

Thanks in advance.

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
0
dec. 23
1271
1
feb. 23
2396
0
dec. 22
1809
1
dec. 18
3912
2
nov. 18
6305