This commit is contained in:
lreficent
2017-10-30 12:54:18 +01:00
committed by ahenriquez
parent 56dee1e9b3
commit 980d634a9a

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)]