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

Confused about Billing vs. Shipping address on Stock Picking report

By
Jeff Beidler
on 2/18/15, 2:36 PM 897 views

I'm working on tweaking the print layout for the view stock.report_picking.  The default looks like it has both "Customer Address" and "Delivery Address", which makes me think that "Customer Address" should be equivalent to a "Bill To" address, and "Delivery Address" should be equivalent to a "Ship To" address.  However, when I create a sales order with different "Customer" and "Delivery" address selections, it looks like the "Delivery" address is actually what gets printed in the "Customer Address" spot.  (Meaning that the "partner_id" field of stock.picking is actually the ID of the partner from the "Delivery" address on the Sales Order.)  If this is so, then how do I get the actual billing address from the sales order?  I don't see an actual link from stock.picking back to sale.order.  The "origin" field is the textual name of the sales order, not the ID of the sale.order record.

In the original code, I see this for the delivery address:  "o.move_lines[0].partner_id".  However, I don't see a "move_lines" column defined for class stock.picking in stock.py.  What is the "move_lines" array, and where is it coming from?

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: 2/18/15, 2:36 PM
Seen: 897 times
Last updated: 3/16/15, 8:10 AM