Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Access sales order from picking report

By
Cetin
on 11/13/14, 10:43 AM 765 views

Hello together,

I want customize the Picking report (report_picking) in odoo 8 (qWeb). How I can access the sales Order from the picking report.

For Example if the VAT field of a customer must be accessed from a report we can write

  • o.partner_id.vat, when the partner_id is avaiable in the current report.

If I call o.origin.client_order_ref I get the following error message after call the picking.

Odoo Client Fehler

SyntaxError: JSON.parse: unexpected end of data

http://localhost:8069/web/static/src/js/core.js:449

Is there a way to access the sales order.

Best regards

cakbulut

0
Nicolas PIGANEAU
On 11/15/14, 5:38 PM

Origin is just a text field.

Use the sale_id field instead => o.sale_id.client_order_ref is what you want.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/13/14, 10:43 AM
Seen: 765 times
Last updated: 3/16/15, 8:10 AM