Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
4468 Представления

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...

Аватар
Отменить
Лучший ответ

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.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
июн. 17
8027
0
мар. 15
3233
0
мар. 15
7302
0
мар. 15
4018
1
сент. 17
6978