This commit is contained in:
lreficent
2017-10-30 12:54:18 +01:00
committed by Lois Rilo
parent 8313fea4fd
commit 2a640a3a1d

View File

@@ -117,7 +117,7 @@ class RmaOrderLine(models.Model):
def action_view_refunds(self):
action = self.env.ref('account.action_invoice_tree2')
result = action.read()[0]
invoice_ids= self.mapped('refund_line_ids.invoice_id').ids
invoice_ids = self.mapped('refund_line_ids.invoice_id').ids
# choose the view_mode accordingly
if len(invoice_ids) != 1:
result['domain'] = [('id', 'in', invoice_ids)]