Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Error on General Journal

By
Emad Jaddou
on 4/2/15, 9:16 AM 509 views

Hi,

We are facing an error when we after we save a journal entry we try to add a new line. we will get the following error:


Traceback (most recent call last):
File "/opt/odoo/openerp/http.py", line 530, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/openerp/http.py", line 567, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/openerp/http.py", line 303, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/openerp/http.py", line 300, in checked_call
return self.endpoint(*a, **kw)
File "/opt/odoo/openerp/http.py", line 796, in __call__
return self.method(*args, **kw)
File "/opt/odoo/openerp/http.py", line 396, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 949, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/addons/web/controllers/main.py", line 941, in _call_kw
return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
File "/opt/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/account/account_move_line.py", line 160, in default_get
data = self._default_get(cr, uid, fields, context=context)
File "/opt/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/addons/account/account_move_line.py", line 246, in _default_get
for move_line_dict in move_obj.resolve_2many_commands(cr, uid, 'line_id', context.get('line_id'), context=context):
File "/opt/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 5090, in resolve_2many_commands
for record in other_model.read(cr, uid, record_ids, fields=fields, context=context):
File "/opt/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 3128, in read
result = BaseModel.read(records, fields, load=load)
File "/opt/odoo/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 3163, in read
self._read_from_database(stored, inherited)
File "/opt/odoo/openerp/api.py", line 239, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/odoo/openerp/models.py", line 3341, in _read_from_database
res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result)
File "/opt/odoo/openerp/osv/fields.py", line 1365, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/opt/odoo/addons/account_payment/account_move_line.py", line 30, in _amount_residual
return self._amount_residual(self, cr, uid, ids, field_names, args, context=context)
File "/opt/odoo/openerp/api.py", line 241, in wrapper
return old_api(self, *args, **kwargs)
TypeError: _amount_residual() got multiple values for keyword argument 'context'

Same error happen regardless if the transaction was in balance or if we change the journal type or any account on the lines.

This is a very annoying error and stops us from doing our work.



appreciate your help.

0
Emad Jaddou
On 4/3/15, 1:39 AM

Answering my own question again.

The error is generated from a buggy model for supplier payment. once un-installed all went back to normal.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 4/2/15, 9:16 AM
Seen: 509 times
Last updated: 4/3/15, 1:39 AM