From 31c0f0baf7da2ec1db3f6d96c0ab2e22a70ccdde Mon Sep 17 00:00:00 2001 From: lreficent Date: Thu, 19 Oct 2017 11:29:08 +0200 Subject: [PATCH] [9.0][FIX] wizards need to specify partner. --- rma_purchase/wizards/rma_add_purchase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rma_purchase/wizards/rma_add_purchase.py b/rma_purchase/wizards/rma_add_purchase.py index b03eaefd..ee0ddc5a 100644 --- a/rma_purchase/wizards/rma_add_purchase.py +++ b/rma_purchase/wizards/rma_add_purchase.py @@ -64,6 +64,7 @@ class RmaAddPurchase(models.TransientModel): raise ValidationError("Please define a warehouse with a " "default rma location.") data = { + 'partner_id': self.partner_id.id, 'purchase_order_line_id': line.id, 'product_id': line.product_id.id, 'origin': line.order_id.name,