[FIX] default_gets: avoid using shadowname 'fields'

This commit is contained in:
mreficent
2019-11-29 18:30:43 +01:00
committed by JasminSForgeFlow
parent 7ebabd8216
commit ad560a9d6a
3 changed files with 6 additions and 6 deletions

View File

@@ -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']