[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 JasminSForgeFlow
parent 25b3e2075c
commit 4fe5f0cfa8
3 changed files with 6 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ Contributors
* Aaron Henriquez <ahenriquez@eficent.com> * Aaron Henriquez <ahenriquez@eficent.com>
* Lois Rilo <lois.rilo@eficent.com> * Lois Rilo <lois.rilo@eficent.com>
* Akim Juillerat <akim.juillerat@camptocamp.com> * Akim Juillerat <akim.juillerat@camptocamp.com>
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
Maintainer Maintainer
---------- ----------

View File

@@ -3,7 +3,7 @@
{ {
"name": "RMA Repair", "name": "RMA Repair",
"version": "12.0.1.0.0", "version": "12.0.1.1.0",
"license": "LGPL-3", "license": "LGPL-3",
"category": "RMA", "category": "RMA",
"summary": "Links RMA with Repairs.", "summary": "Links RMA with Repairs.",

View File

@@ -150,6 +150,7 @@ class RmaLineMakeRepairItem(models.TransientModel):
rma_line.product_id.property_stock_refurbish) rma_line.product_id.property_stock_refurbish)
refurbish_location_dest_id = (self.location_dest_id.id if refurbish_location_dest_id = (self.location_dest_id.id if
self.to_refurbish else False) self.to_refurbish else False)
addr = rma_line.partner_id.address_get(['delivery', 'invoice'])
return { return {
'product_id': rma_line.product_id.id, 'product_id': rma_line.product_id.id,
'partner_id': rma_line.partner_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, 'refurbish_product_id': self.refurbish_product_id.id,
'to_refurbish': self.to_refurbish, 'to_refurbish': self.to_refurbish,
'invoice_method': self.invoice_method, '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,
} }