简体   繁体   中英

Odoo 10 - Get sale order object for stock move line

I would like to get the corresponding sale order for stock move lines. So for each delivery slip I will be able to provide information contained in the original sales order which motivated the stock move.

Is there any existing relation table that could be use?

移动和销售线之间应该有联系:

order = move.procurement_id.sale_line_id.order_id

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM