Error al crear cuentas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
account-management |
New
|
Undecided
|
Unassigned |
Bug Description
Revision:
406 <email address hidden>
Al crear las cuentas se produce el siguiente error:
ERROR:web-
Traceback (most recent call last):
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
self._check(cr, uid, vals,context)
TypeError: _check() takes exactly 4 arguments (5 given)
El metodo _check() esta definido asi:
def _check(self, cr, uid, vals):
if not cuentas[0]:
if partner_acc_id:
pattern = self.pool.
#~ vals['name'] = self._get_name(cr, uid, cuentas)
return vals
Se hizo el llamado asi:
self._check(cr, uid, vals,context)
Solucion:
se quita el context del llamado o se agrega al metodo
Saludos