mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] default_gets: avoid using shadowname 'fields'
This commit is contained in:
@@ -10,8 +10,8 @@ class RmaAddStockMove(models.TransientModel):
|
||||
_description = 'Wizard to add rma lines from pickings'
|
||||
|
||||
@api.model
|
||||
def default_get(self, fields):
|
||||
res = super(RmaAddStockMove, self).default_get(fields)
|
||||
def default_get(self, fields_list):
|
||||
res = super(RmaAddStockMove, self).default_get(fields_list)
|
||||
rma_obj = self.env['rma.order']
|
||||
rma_id = self.env.context['active_ids'] or []
|
||||
active_model = self.env.context['active_model']
|
||||
|
||||
@@ -26,13 +26,13 @@ class RmaMakePicking(models.TransientModel):
|
||||
return values
|
||||
|
||||
@api.model
|
||||
def default_get(self, fields):
|
||||
def default_get(self, fields_list):
|
||||
"""Default values for wizard, if there is more than one supplier on
|
||||
lines the supplier field is empty otherwise is the unique line
|
||||
supplier.
|
||||
"""
|
||||
context = self._context.copy()
|
||||
res = super(RmaMakePicking, self).default_get(fields)
|
||||
res = super(RmaMakePicking, self).default_get(fields_list)
|
||||
rma_line_obj = self.env['rma.order.line']
|
||||
rma_line_ids = self.env.context['active_ids'] or []
|
||||
active_model = self.env.context['active_model']
|
||||
|
||||
@@ -47,9 +47,9 @@ class RmaLineMakeSupplierRma(models.TransientModel):
|
||||
}
|
||||
|
||||
@api.model
|
||||
def default_get(self, fields):
|
||||
def default_get(self, fields_list):
|
||||
res = super(RmaLineMakeSupplierRma, self).default_get(
|
||||
fields)
|
||||
fields_list)
|
||||
rma_line_obj = self.env['rma.order.line']
|
||||
rma_line_ids = self.env.context['active_ids'] or []
|
||||
active_model = self.env.context['active_model']
|
||||
|
||||
Reference in New Issue
Block a user