Community mailing list archives

community@mail.odoo.com

Add Analytic account in Purchase Picking report

by
François Foltzer
- 07/16/2015 11:06:35
I tried to integrate the analytic account in report.picking for purchase, like i've done for sale.
For sale picking report i have done like this :

"...
<span class="oe_editable" t-field="o.sale_id.project_id"/>
..."

I tried to do the same in pciking report for incoming like that.

"..

<t t-if="o.picking_type_id.code !== 'outgoing'">
<td>
<span class="oe_editable" t-field="o.sale_id.project_id"/>
</td>
</t>
<t t-if="o.picking_type_id.code !== 'incoming'">
<td>
<span class="oe_editable" t-field="o.invoice_line[0].account_analytic_id"/>
</td>
</t>
..."
I have got an error like
"...
QWebException: "'stock.picking' object has no attribute 'invoice_line'" while evaluating
'o.invoice_line[0]'

..."

But i'can't find the right field to integrate.

Il think I dont have the good model in "o.*"

Any idea on how the good field name ?

Thank you for your help


François Foltzer
Tél +33 6 32 89 19 21
francois.foltzer@gmail.com