تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4673 أدوات العرض

Hello, I'm trying to edit the hr_payroll report, I found the file at addons/hr_payroll/views/report_payslip.xml, and I found this line which is confusing me.. 

<t t-foreach="docs" t-as="o">

    ...

</t>

I know, it's a simple loop on a list variable named 'docs', but that I don't know is where that list is defined in the python code.
Which python file contains the list named 'docs'? Which variable/method is being called? docs/'docs()'?

If I add some new variable in 'that' python file, will I be able to use it from the report_payslip.xml file?

Thank you for your responses.

Regards

Alejandro

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
ديسمبر 23
59532
1
ديسمبر 18
2592
2
أكتوبر 18
7409
3
ديسمبر 23
19886
1
ديسمبر 16
6624