Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
2884 Vizualizări

Hello Community,


I'm having an issue with the account.invoice report i'm trying to get data from another module I've used this parser from the official documentation it does not work for account.invoice for my custom module it seem to work, is there another way to declare parser report for account.invoice ?

Imagine profil
Abandonează

which version do you use

Cel mai bun răspuns

 Hi,

If you want to access data from other models in the report template, you can try this without using the parser.

Format,

<t t-foreach="request.env['model_name'].search([])" t-as="obj">
<t t-esc="obj"/>
</t>

Sample,

<t t-foreach="request.env['hr.employee'].search([('user_id', '=', user.id)])" t-as="obj">
<t t-esc="obj.job_id.name"/>
</t>

Thanks



Imagine profil
Abandonează