Community mailing list archives

community@mail.odoo.com

How to integrate puchase_order_line fields in qweb picking report

by
François Foltzer
- 07/24/2015 05:04:55
I try to integrate account_analytic_id form purchase_order_line table with this code :

"...
<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.purchase_order_line_id.account_analytic_id"/>
  </td>
</t>
..."

And i get this message.

"...
'stock.picking' object has no attribute 'purchase_order_line_id'" while evaluating 'o.purchase_order_line_id'
..."


It run fine with sale.order but not with purchase_order_line

Il try with purchase_order.purchase_order_line_id[0]...
I got a similar error message.

I try to search sinc 10 days, but  I have'nt found anything.

Any idea on how to call purchase order line  fields in picking report ?

Many thanks for your help.


François Foltzer


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