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

Error while printing the openoffice report for payroll..

By
Ashmsh.M
on 7/5/14, 3:30 AM 992 views

I create new report for my openerp payroll .Refering the default Openerp payroll report structure (report_payslip.sxw)

The details of the employee such as name , designation etc are print fine. 

Then i add the payslip computation details to the report by giving the line.   " [[repeatIn(get_payslip_lines(o.line_ids),'p') ]] "

gives the corresponding field like " 

[[ p.code ]]

[[ p.name ]]

etc... "      After sending to the server then i make a test print shows the error like this.  " Openerp Warning     name 'get_payslip_lines' is not defined

(<type 'exceptions.NameError'>, NameError("name 'get_payslip_lines' is not defined",), <traceback object at 0x064742

 

how can be solve this.. or   How can be define the name get_payslip_lines in openoffice...

0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 7/6/14, 8:45 AM

Ashmsh,

You should specify the get_payslip_lines() method in your report parser(Py file which instantiates the report).

Have a look at hr_payroll/report/report_payslip.py which links to the proper report RML.

Thank you.

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: 7/5/14, 3:30 AM
Seen: 992 times
Last updated: 3/16/15, 8:10 AM