跳至內容
選單
此問題已被標幟
3447 瀏覽次數

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
12月 23
1266
1
2月 23
2387
0
12月 22
1807
1
12月 18
3903
2
11月 18
6300