[英]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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.