Odoo Help

0
1
Zbik
On 1/12/15, 10:19 AM

Try print only the last line:

<div t-foreach="get_payslip_lines(o.line_ids)" t-as="p">
<t t-if="p_index + 1 == len(get_payslip_lines(o.line_ids))">
    <span t-esc="formatLang(p.amount, currency_obj=o.company_id.currency_id)" />
    <span t-esc="formatLang(p.total, currency_obj=o.company_id.currency_id)" />
</t>
</div>

or identify line by p.salary_rule_id.code = 'NET'

Thanks a lot! I'm happy. You had two typos. They are corrected.

Pascal Tremblay
on 1/12/15, 7:32 PM
0
Pascal Tremblay
On 1/12/15, 7:34 PM

great!

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/11/15, 2:14 PM
Seen: 1907 times
Last updated: 3/16/15, 8:10 AM