This commit is contained in:
lreficent
2017-10-30 12:54:18 +01:00
parent fe1999ddae
commit 44ffa8fc12
2 changed files with 2 additions and 2 deletions

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

View File

@@ -2,7 +2,7 @@
# Copyright 2017 Eficent Business and IT Consulting Services S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from openerp import api, fields, models
from openerp import fields, models
class MrpRepair(models.Model):