mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
pylint
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user