Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
The picking report uses:
to specify which is the source document of the item.
Is it possible to additionally refer to client_order_ref field of the sales order? If so, how?
Yes it is possible. But first you need to bring that to the picking form view. Then you can call it in report.
A many2one field relation is already there called "sale_id", so we just need to add a related field in stock.picking
You may try the following:
1. Inherit stock.picking and add a related field
client_ref = fields.Char(related="sale_id.client_order_ref", string="Client Description")
2. Call that in picking form view
<record id="view_picking_form_inherited" model="ir.ui.view">
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="client_ref" />
3. call it in picking report by inheriting the template
<?xml version="1.0" encoding="utf-8"?>
<template id="report_picking_inherited" inherit_id="stock.report_picking">
<xpath expr="//t/div/table/thead/tr/th" position="after">
<xpath expr="//t/div/table/tbody/tr/td" position="after">
Akhil provided a very good and comprehensive example for the form,
For the PDF report is actually very simple and I found it later here: https://www.odoo.com/forum/help-1/question/solved-how-do-i-add-the-client-order-reference-description-their-po-number-to-a-deliver-order-picking-report-saas-version-82994
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/18/15, 1:44 PM|
|Seen: 564 times|
|Last updated: 10/21/15, 4:48 PM|