mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] bring Lot/Serial,Delivery Address and Invoicing Address when create a repair order
This commit is contained in:
committed by
JasminSForgeFlow
parent
25b3e2075c
commit
4fe5f0cfa8
@@ -41,6 +41,7 @@ Contributors
|
||||
* Aaron Henriquez <ahenriquez@eficent.com>
|
||||
* Lois Rilo <lois.rilo@eficent.com>
|
||||
* Akim Juillerat <akim.juillerat@camptocamp.com>
|
||||
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "RMA Repair",
|
||||
"version": "12.0.1.0.0",
|
||||
"version": "12.0.1.1.0",
|
||||
"license": "LGPL-3",
|
||||
"category": "RMA",
|
||||
"summary": "Links RMA with Repairs.",
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user