Hello. I want to modify existing rml template from addons/hr_timesheet_invoice/report/account_analytic_profit.rml
But I have some troubles with following piece of code
[[ reduce(lambda x, y: x+y['unit_amount'], line(data['form'], data['form']['journal_ids'][0][2], data['form']['employee_ids'][0][2]), 0) ]]
I can't understand what line function do. Can someone explain it to me?