[FIX] bring Lot/Serial,Delivery Address and Invoicing Address when create a repair order

This commit is contained in:
Bhavesh Odedra
2019-05-24 19:18:48 +05:30
committed by Aaron Henriquez
parent 25d84d0b30
commit c0d4836833

View File

@@ -150,6 +150,7 @@ class RmaLineMakeRepairItem(models.TransientModel):
rma_line.product_id.property_stock_refurbish)
refurbish_location_dest_id = (self.location_dest_id.id if
self.to_refurbish else False)
addr = rma_line.partner_id.address_get(['delivery', 'invoice'])
return {
'product_id': rma_line.product_id.id,
'partner_id': rma_line.partner_id.id,
@@ -163,5 +164,7 @@ class RmaLineMakeRepairItem(models.TransientModel):
'refurbish_product_id': self.refurbish_product_id.id,
'to_refurbish': self.to_refurbish,
'invoice_method': self.invoice_method,
'partner_invoice_id': rma_line.invoice_address_id.id,
'address_id': addr['delivery'],
'partner_invoice_id': addr['invoice'],
'lot_id': rma_line.lot_id.id,
}