Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Get payslip net line amount in another costum field

By
Koffi KPONOUGLO
on 1/5/15, 3:41 AM 497 views

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 1/5/15, 3:41 AM
Seen: 497 times
Last updated: 3/16/15, 8:10 AM