Skip to Content
Menu
This question has been flagged
3 Replies
2320 Views

I created odoov13 container from github.com/zurawsm3/odoov13RPI 

I got Odoo source code from: github.com/odoo/docker/tree/master/13.0

EROR:

web_1 | 2020-02-13 09:45:43,404 1 ERROR nowa_baza odoo.http: Exception during JSON request handling. 
web_1 | Traceback (most recent call last):
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 619, in _handle_exception
web_1 | return super(JsonRequest, self)._handle_exception(exception)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 309, in _handle_exception
web_1 | raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
web_1 | File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise
web_1 | raise value
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 664, in dispatch
web_1 | result = self._call_function(**self.params)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 345, in _call_function
web_1 | return checked_call(self.db, *args, **kwargs)
web_1 | File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 93, in wrapper
web_1 | return f(dbname, *args, **kwargs)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 338, in checked_call
web_1 | result = self.endpoint(*a, **kw)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 910, in __call__
web_1 | return self.method(*args, **kw)
web_1 | File "/usr/lib/python3/dist-packages/odoo/http.py", line 510, in response_wrap
web_1 | response = f(*args, **kw)
web_1 | File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1320, in call_kw
web_1 | return self._call_kw(model, method, args, kwargs)
web_1 | File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1312, in _call_kw
web_1 | return call_kw(request.env[model], method, args, kwargs)
web_1 | File "/usr/lib/python3/dist-packages/odoo/api.py", line 395, in call_kw
web_1 | result = _call_kw_multi(method, model, args, kwargs)
web_1 | File "/usr/lib/python3/dist-packages/odoo/api.py", line 382, in _call_kw_multi
web_1 | result = method(recs, *args, **kwargs)
web_1 | File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_ui_view.py", line 430, in save
web_1 | super(View, self).save(value, xpath=xpath)
web_1 | File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_ui_view.py", line 184, in save
web_1 | self.save_embedded_field(arch_section)
web_1 | File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_ui_view.py", line 50, in save_embedded_field
web_1 | value = converter.from_html(Model, Model._fields[field], el)
web_1 | File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_qweb.py", line 408, in from_html
web_1 | return float(value.replace(lang.thousands_sep, '')
web_1 | TypeError: replace() argument 1 must be str, not bool

I see in logs that before 'save' I didn't have any errors/warnings

I tried with older versions of odoov13 nightly builds and postgresql v12.0. I've got the same error

IMHO changing price of product is common feature. I don't know why it's not working


Avatar
Discard
Author

What I did is in comment, because I have number of chars limit:

1) docker-compose up

2) create database * in GUI

3) install Website app

4) choose Bootswatch

5) install E-commerce app

6) add product

7) edit product price

8) save

Author

I realized that in English language everything works, but in Polish language not

Best Answer

I confirm this is a bug. 
Error raise because of thousand separators not set for polish language.
ref: https://imgur.com/a/oZsD6xZ
I wonder why this bug is not detected earlier because there are many languages were a thousand separators not available.
ref: https://github.com/odoo/odoo/blob/13.0/odoo/addons/base/data/res.lang.csv

Avatar
Discard
Related Posts Replies Views Activity
0
Feb 20
4029
0
Jul 24
196
1
Apr 24
761
4
Feb 24
4727
3
Mar 24
1663