[9.0][FIX] wizards need to specify partner.

This commit is contained in:
lreficent
2017-10-19 11:29:08 +02:00
committed by Mateu Griful
parent d2e325feda
commit 1bb0699f65

View File

@@ -61,6 +61,7 @@ class RmaAddInvoice(models.TransientModel):
raise ValidationError("Please define a warehouse with a"
" default rma location")
data = {
'partner_id': self.partner_id.id,
'invoice_line_id': line.id,
'product_id': line.product_id.id,
'origin': line.invoice_id.number,