Skip to Content
Menu
This question has been flagged

I get this error ...


Odoo Server Error

Traceback (most recent call last):

File "/opt/odoo/odoo-server/openerp/http.py", line 530, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/opt/odoo/odoo-server/openerp/http.py", line 567, in dispatch

result = self._call_function(**self.params)

File "/opt/odoo/odoo-server/openerp/http.py", line 303, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper

return f(dbname, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/http.py", line 300, in checked_call

return self.endpoint(*a, **kw)

File "/opt/odoo/odoo-server/openerp/http.py", line 796, in __call__

return self.method(*args, **kw)

File "/opt/odoo/odoo-server/openerp/http.py", line 396, in response_wrap

response = f(*args, **kw)

File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 949, in call_kw

return self._call_kw(model, method, args, kwargs)

File "/opt/odoo/odoo-server/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/odoo-server/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo-server/addons/account/account_move_line.py", line 160, in default_get

data = self._default_get(cr, uid, fields, context=context)

File "/opt/odoo/odoo-server/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo-server/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/odoo-server/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo-server/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/odoo-server/openerp/api.py", line 241, in wrapper

return old_api(self, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/models.py", line 3128, in read

result = BaseModel.read(records, fields, load=load)

File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper

return new_api(self, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/models.py", line 3163, in read

self._read_from_database(stored, inherited)

File "/opt/odoo/odoo-server/openerp/api.py", line 239, in wrapper

return new_api(self, *args, **kwargs)

File "/opt/odoo/odoo-server/openerp/models.py", line 3357, in _read_from_database

record._cache.update(record._convert_to_cache(vals, validate=False))

File "/opt/odoo/odoo-server/openerp/models.py", line 5299, in _convert_to_cache

for name, value in values.iteritems()

File "/opt/odoo/odoo-server/openerp/models.py", line 5300, in <dictcomp>

if name in fields

File "/opt/odoo/odoo-server/openerp/fields.py", line 1025, in convert_to_cache

return float_round(float(value or 0.0), precision_digits=self.digits[1])

TypeError: float() argument must be a string or a number


When I try to add a line to accounting journal.

How to overcome the error? What causes it anyway?



Avatar
Discard

You have to add your code here to let others help you

Author

There is no code here. It is all about data entry in the form view...

Related Posts Replies Views Activity
4
Mar 24
29184
0
Sep 23
577
1
Feb 23
2101
1
Dec 22
13646
2
Dec 22
5245