guohuadeng / app-odoo Goto Github PK
View Code? Open in Web Editor NEWOdoo Addon for 17,16,15,14,13,12,11,10, CE and EE and SH。Odoo的全版本开源免费增强集合
Home Page: https://www.odooai.cn
Odoo Addon for 17,16,15,14,13,12,11,10, CE and EE and SH。Odoo的全版本开源免费增强集合
Home Page: https://www.odooai.cn
Fehler:
Odoo Server Error
Traceback (most recent call last):
File "/home/dev/gitbase/v12/v12-server/odoo/tools/convert.py", line 757, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/home/dev/gitbase/v12/v12-server/odoo/tools/convert.py", line 662, in _tag_record
record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3821, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/dev/gitbase/v12/v12-server/addons/website/models/ir_ui_view.py", line 128, in _load_records_create
records = super(View, self)._load_records_create(values)
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3735, in _load_records_create
return self.create(values)
File "<decorator-gen-32>", line 2, in create
File "/home/dev/gitbase/v12/v12-server/odoo/api.py", line 452, in _model_create_multi
return create(self, arg)
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_ui_view.py", line 428, in create
return super(View, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/home/dev/gitbase/v12/v12-server/odoo/api.py", line 452, in _model_create_multi
return create(self, arg)
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3552, in create
fields[0].determine_inverse(batch_recs)
File "/home/dev/gitbase/v12/v12-server/odoo/fields.py", line 1097, in determine_inverse
getattr(records, self.inverse)()
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
view.write(data)
File "/home/dev/gitbase/v12/v12-server/addons/website/models/ir_ui_view.py", line 41, in write
return super(View, self).write(vals)
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_ui_view.py", line 444, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3269, in write
self._write(store_vals)
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3413, in _write
self._validate_fields(vals)
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 1108, in _validate_fields
check(self)
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_ui_view.py", line 360, in _check_xml
raise ValidationError(_('Invalid view %s definition in %s') % (view.name, view.arch_fs))
odoo.exceptions.ValidationError: ('Invalid view ir.module.module.list.select definition in app_module_superbar/views/module_views.xml', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dev/gitbase/v12/v12-server/odoo/http.py", line 654, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/dev/gitbase/v12/v12-server/odoo/http.py", line 312, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/dev/gitbase/v12/v12-server/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/dev/gitbase/v12/v12-server/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/home/dev/gitbase/v12/v12-server/odoo/http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/dev/gitbase/v12/v12-server/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/dev/gitbase/v12/v12-server/odoo/http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "/home/dev/gitbase/v12/v12-server/odoo/http.py", line 939, in __call__
return self.method(*args, **kw)
File "/home/dev/gitbase/v12/v12-server/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/home/dev/gitbase/v12/v12-server/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/home/dev/gitbase/v12/v12-server/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/dev/gitbase/v12/v12-server/odoo/api.py", line 749, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/home/dev/gitbase/v12/v12-server/odoo/api.py", line 736, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-61>", line 2, in button_immediate_install
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_module.py", line 444, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_module.py", line 553, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/dev/gitbase/v12/v12-server/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/dev/gitbase/v12/v12-server/odoo/modules/loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "/home/dev/gitbase/v12/v12-server/odoo/modules/loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/dev/gitbase/v12/v12-server/odoo/modules/loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/home/dev/gitbase/v12/v12-server/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/home/dev/gitbase/v12/v12-server/odoo/tools/convert.py", line 801, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/home/dev/gitbase/v12/v12-server/odoo/tools/convert.py", line 864, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/home/dev/gitbase/v12/v12-server/odoo/tools/convert.py", line 754, in parse
self.parse(rec, mode)
File "/home/dev/gitbase/v12/v12-server/odoo/tools/convert.py", line 763, in parse
exc_info[2]
File "/home/dev/gitbase/v12/v12-server/odoo/tools/pycompat.py", line 86, in reraise
raise value.with_traceback(tb)
File "/home/dev/gitbase/v12/v12-server/odoo/tools/convert.py", line 757, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/home/dev/gitbase/v12/v12-server/odoo/tools/convert.py", line 662, in _tag_record
record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3821, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/dev/gitbase/v12/v12-server/addons/website/models/ir_ui_view.py", line 128, in _load_records_create
records = super(View, self)._load_records_create(values)
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3735, in _load_records_create
return self.create(values)
File "<decorator-gen-32>", line 2, in create
File "/home/dev/gitbase/v12/v12-server/odoo/api.py", line 452, in _model_create_multi
return create(self, arg)
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_ui_view.py", line 428, in create
return super(View, self).create(vals_list)
File "<decorator-gen-3>", line 2, in create
File "/home/dev/gitbase/v12/v12-server/odoo/api.py", line 452, in _model_create_multi
return create(self, arg)
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3552, in create
fields[0].determine_inverse(batch_recs)
File "/home/dev/gitbase/v12/v12-server/odoo/fields.py", line 1097, in determine_inverse
getattr(records, self.inverse)()
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
view.write(data)
File "/home/dev/gitbase/v12/v12-server/addons/website/models/ir_ui_view.py", line 41, in write
return super(View, self).write(vals)
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_ui_view.py", line 444, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3269, in write
self._write(store_vals)
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 3413, in _write
self._validate_fields(vals)
File "/home/dev/gitbase/v12/v12-server/odoo/models.py", line 1108, in _validate_fields
check(self)
File "/home/dev/gitbase/v12/v12-server/odoo/addons/base/models/ir_ui_view.py", line 360, in _check_xml
raise ValidationError(_('Invalid view %s definition in %s') % (view.name, view.arch_fs))
odoo.tools.convert.ParseError: "Invalid view ir.module.module.list.select definition in app_module_superbar/views/module_views.xml
None" while parsing /home/dev/gitbase/v12/v12-oca/3rdparty/app_module_superbar/views/module_views.xml:4, near
<record id="view_module_filter_superbar" model="ir.ui.view">
<field name="name">ir.module.module.list.select</field>
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.view_module_filter"/>
<field name="arch" type="xml">
<xpath expr="//search">
<superbar view_mode="kanban,tree">
<field name="state"/>
<field name="category_id" domain="[]" parent_key="parent_id"/>
<field name="license"/>
</superbar>
</xpath>
</field>
</record>
l10n_cn_standard_latest 14 ,卸载原先的版本 14.21.11.07,安装新的版本14.21.11.09,安装不上,提示出错
odoo\http.py", line 316, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing file: extra-addons/l10n_cn_standard_latest/data/account_chart_template_data.xml:14, near
Installing app_odoo_customize
i get this bug:
tr_TR.png:1 GET http://localhost/app_odoo_customize/static/src/img/flags/tr_TR.png 404 (NOT FOUND)
Image (async)
(anonymous) @ web.assets_common.js:980
domManip @ web.assets_common.js:984
replaceWith @ web.assets_common.js:980
(anonymous) @ web.assets_backend.js:2935
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
(anonymous) @ web.assets_common.js:3869
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
done @ web.assets_common.js:1192
callback @ web.assets_common.js:1212
XMLHttpRequest.send (async)
send @ web.assets_common.js:1209
ajax @ web.assets_common.js:1185
(anonymous) @ web.assets_common.js:3839
genericJsonRpc @ web.assets_common.js:3833
jsonRpc @ web.assets_common.js:3839
(anonymous) @ web.assets_common.js:3990
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
add @ web.assets_common.js:797
(anonymous) @ web.assets_common.js:802
each @ web.assets_common.js:625
(anonymous) @ web.assets_common.js:802
Deferred @ web.assets_common.js:803
then @ web.assets_common.js:802
rpc @ web.assets_common.js:3988
(anonymous) @ web.assets_common.js:3869
Deferred @ web.assets_common.js:803
rpc @ web.assets_common.js:3869
_call_service @ web.assets_common.js:3932
(anonymous) @ web.assets_common.js:3923
trigger @ web.assets_common.js:3921
_trigger_up @ web.assets_common.js:3927
_trigger_up @ web.assets_common.js:3927
trigger_up @ web.assets_common.js:3927
call @ web.assets_common.js:3932
_rpc @ web.assets_common.js:3932
init @ web.assets_backend.js:2934
(anonymous) @ web.assets_common.js:3819
Class @ web.assets_common.js:3817
show_application @ web.assets_backend.js:505
show_application @ web.assets_backend.js:2877
(anonymous) @ web.assets_common.js:3819
show_application @ web.assets_backend.js:2927
(anonymous) @ web.assets_common.js:3819
(anonymous) @ web.assets_backend.js:501
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
fire @ web.assets_common.js:796
add @ web.assets_common.js:797
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
script.onload.script.onreadystatechange @ web.assets_common.js:3848
load (async)
loadJS @ web.assets_common.js:3847
load_js @ web.assets_common.js:3978
(anonymous) @ web.assets_common.js:3978
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
done @ web.assets_common.js:1192
callback @ web.assets_common.js:1212
XMLHttpRequest.send (async)
send @ web.assets_common.js:1209
ajax @ web.assets_common.js:1185
(anonymous) @ web.assets_common.js:3839
genericJsonRpc @ web.assets_common.js:3833
jsonRpc @ web.assets_common.js:3839
(anonymous) @ web.assets_common.js:3990
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
add @ web.assets_common.js:797
(anonymous) @ web.assets_common.js:802
each @ web.assets_common.js:625
(anonymous) @ web.assets_common.js:802
Deferred @ web.assets_common.js:803
then @ web.assets_common.js:802
rpc @ web.assets_common.js:3988
load_translations @ web.assets_common.js:3828
load_translations @ web.assets_common.js:3978
load_modules @ web.assets_common.js:3977
(anonymous) @ web.assets_common.js:3969
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
deferred.(anonymous function) @ web.assets_common.js:803
(anonymous) @ web.assets_common.js:4010
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
fireWith @ web.assets_common.js:801
done @ web.assets_common.js:1192
callback @ web.assets_common.js:1212
XMLHttpRequest.send (async)
send @ web.assets_common.js:1209
ajax @ web.assets_common.js:1185
jQuery.(anonymous function) @ web.assets_common.js:1196
(anonymous) @ web.assets_common.js:3979
(anonymous) @ web.assets_common.js:4010
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
add @ web.assets_common.js:797
(anonymous) @ web.assets_common.js:802
each @ web.assets_common.js:625
(anonymous) @ web.assets_common.js:802
Deferred @ web.assets_common.js:803
then @ web.assets_common.js:802
exec @ web.assets_common.js:4010
load_qweb @ web.assets_common.js:3979
(anonymous) @ web.assets_common.js:3969
(anonymous) @ web.assets_common.js:802
fire @ web.assets_common.js:796
add @ web.assets_common.js:797
(anonymous) @ web.assets_common.js:802
each @ web.assets_common.js:625
(anonymous) @ web.assets_common.js:802
Deferred @ web.assets_common.js:803
then @ web.assets_common.js:802
session_init @ web.assets_common.js:3969
session_bind @ web.assets_common.js:3968
(anonymous) @ web.assets_backend.js:608
process_job @ web.assets_common.js:3782
process_jobs @ web.assets_common.js:3788
define @ web.assets_common.js:3771
(anonymous) @ web.assets_backend.js:608
es_CO.png:1 GET http://localhost/app_odoo_customize/static/src/img/flags/es_CO.png 404 (NOT FOUND)
It means, that module have no localization support.
Stop Odoo Auto Subscribe
When this function is activated, the subscription to any model in the odoo is blocked.
https://drive.google.com/file/d/1A2KHhPLLC8FYJjFs--roLoCsIGveGkQS/view?usp=sharing
When any user login, auto enabling debug mode.
Odoo 13 CE 20210103, module cloned today.
This is the error I get when trying to apply changes.
Error:
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 915, in call
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1327, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1319, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 385, in call_kw
result = _call_kw_model_create(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 365, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 314, in _model_create_single
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/account/models/res_config_settings.py", line 156, in create
return super(ResConfigSettings, self).create(values)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 335, in _model_create_multi
return create(self, [arg])
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3805, in create
records = self._create(data_list)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3965, in _create
for other, data in zip(others, data_list)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2861, in create
self.write_batch(record_values, True)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2887, in write_batch
return self.write_real(records_commands_list, create)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 3435, in write_real
relation_set(recs._ids, command[2] if command[0] == 6 else ())
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 3407, in relation_set
new_relation[x] = set(ys)
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 1073, in init
self._map = OrderedDict((elem, None) for elem in elems)
TypeError: 'NoneType' object is not iterable
version:odoo12 2021-05-15
2021-05-16 16:33:17,817 18272 ERROR odoo12 odoo.sql_db: bad query: delete from stock_quant_package
ERROR: null value in column "package_id" violates not-null constraint
DETAIL: Failing row contains (1, null, 23, 9, 2, 2021-05-16 11:33:07.154073, 2, 2021-05-16 11:33:07.184037).
CONTEXT: SQL statement "UPDATE ONLY "public"."stock_package_level" SET "package_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "package_id""
2021-05-16 16:33:17,767 18272 INFO odoo12 werkzeug: 127.0.0.1 - - [16/May/2021 16:33:17] "POST /web/dataset/call_button HTTP/1.1" 200 - 4 0.011 0.020
2021-05-16 16:33:17,802 18272 INFO odoo12 werkzeug: 127.0.0.1 - - [16/May/2021 16:33:17] "POST /web/dataset/call_kw/res.config.settings/read HTTP/1.1" 200 - 4 0.006 0.006
On several of the superbar addons e.g. app_mail_superbar, when I add them, I get the error
Only types many2one, selection are supported for category (found type many2many)
upon going to the parts of the UI that use the addon.
Also happening for me with app_product_superbar_pro
因模块account被人翻译错误,导致您开发的模块很多科目类型严重错误,这几年来都没人发现,资产费用资产等科目类型多处错误
'name': '2021最新**企业会计表.Latest Chinese Accounting.',
'version': '14.21.06.09',
#. module: account
#: model:account.account.type,name:account.data_account_off_sheet
msgid "Off-Balance Sheet"
msgstr "资产负债表外"
Module latest version as of today. just installed pristine Odoo13.
When trying to apply a change on any default value, like System Name from OdooApp to somethign else. we get this error.
8 INFO ? werkzeug: 201.213.198.80 - - [12/Nov/2021 19:00:12] "GET /web/static/src/xml/crash_manager.xml?debug=1636743612477 HTTP/1.0" 200 - - - -
2021-11-12 19:00:18,267 538 ERROR electroql odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/odoo/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/http.py", line 915, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/main.py", line 1339, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/addons/web/controllers/main.py", line 1331, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 385, in call_kw
result = _call_kw_model_create(method, model, args, kwargs)
File "/opt/odoo/odoo/api.py", line 365, in _call_kw_model_create
result = method(recs, *args, **kwargs)
File "", line 2, in create
File "/opt/odoo/odoo/api.py", line 314, in _model_create_single
return create(self, arg)
File "/opt/odoo/addons/account/models/res_config_settings.py", line 156, in create
return super(ResConfigSettings, self).create(values)
File "", line 2, in create
File "/opt/odoo/odoo/api.py", line 335, in _model_create_multi
return create(self, [arg])
File "/opt/odoo/odoo/models.py", line 3812, in create
records = self._create(data_list)
File "/opt/odoo/odoo/models.py", line 3972, in _create
for other, data in zip(others, data_list)
File "/opt/odoo/odoo/fields.py", line 2899, in create
self.write_batch(record_values, True)
File "/opt/odoo/odoo/fields.py", line 2925, in write_batch
return self.write_real(records_commands_list, create)
File "/opt/odoo/odoo/fields.py", line 3477, in write_real
relation_set(recs._ids, command[2] if command[0] == 6 else ())
File "/opt/odoo/odoo/fields.py", line 3449, in relation_set
new_relation[x] = set(ys)
File "/opt/odoo/odoo/tools/misc.py", line 1073, in init
self._map = OrderedDict((elem, None) for elem in elems)
TypeError: 'NoneType' object is not iterable
When i try change (for example) the System Name from odooApp to MyApp (for example).
Apply
when i return to configurations/odooApp, system name dont change
由于经常直接用git来更新代码,发现你们的git提交上来时常有错误的代码,导致整个系统无法运行,烦请确认没问题再提交。。。
最近11.0
app_purchase_report
app_mrp_bom_location
这两个都有问题,目前没用到这两个addons,没去核对代码
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 270, in run_wsgi
execute(self.server.app)
File "/usr/local/lib/python3.6/dist-packages/werkzeug/serving.py", line 258, in execute
application_iter = app(environ, start_response)
File "/odoo/odoo-server/odoo/service/server.py", line 260, in app
return self.app(e, s)
File "/odoo/odoo-server/odoo/service/wsgi_server.py", line 166, in application
return application_unproxied(environ, start_response)
File "/odoo/odoo-server/odoo/service/wsgi_server.py", line 154, in application_unproxied
result = handler(environ, start_response)
File "/odoo/odoo-server/odoo/http.py", line 1317, in call
self.load_addons()
File "/odoo/odoo-server/odoo/http.py", line 1349, in load_addons
m = import('odoo.addons.' + module)
File "/odoo/odoo-server/odoo/modules/module.py", line 61, in load_module
f, path, (_suffix, mode, type) = imp.find_module(addon_name, ad_paths)
File "/usr/lib/python3.6/imp.py", line 297, in find_module
raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named 'app_purchase_report'
应该是 from. import xxx 和import xxx 这个11.0 特有的问题吧
首先非常感谢你的工作,冒昧请问一下 test-ribbon
仅仅是一个提示吗?还是有什么特别的用途,移除它有什么影响吗?
When using app_sale_superbar I get the error:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo-14.0-OCB/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 696, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 370, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo-14.0-OCB/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 358, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 919, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 544, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo-14.0-OCB/addons/web/controllers/main.py", line 1370, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo-14.0-OCB/addons/web/controllers/main.py", line 1362, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo-14.0-OCB/odoo/api.py", line 395, in call_kw
result = _call_kw_model(method, model, args, kwargs)
File "/home/odoo/src/odoo-14.0-OCB/odoo/api.py", line 368, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/home/odoo/src/odoo-14.0-OCB/addons/web/models/models.py", line 568, in search_panel_select_range
comodel_records = Comodel.search_read(comodel_domain, field_names, limit=limit)
File "/home/odoo/src/odoo-14.0-OCB/odoo/models.py", line 4873, in search_read
records = self.search(domain or [], offset=offset, limit=limit, order=order)
File "/home/odoo/src/odoo-14.0-OCB/odoo/models.py", line 1712, in search
res = self._search(args, offset=offset, limit=limit, order=order, count=count)
File "/home/odoo/src/odoo-14.0-OCB/odoo/addons/base/models/res_users.py", line 539, in _search
return super(Users, self)._search(args, offset=offset, limit=limit, order=order, count=count,
File "/home/odoo/src/odoo-14.0-OCB/odoo/models.py", line 4542, in _search
query = self._where_calc(args)
File "/home/odoo/src/odoo-14.0-OCB/odoo/models.py", line 4298, in _where_calc
return expression.expression(domain, self).query
File "/home/odoo/src/odoo-14.0-OCB/odoo/osv/expression.py", line 442, in __init__
self.parse()
File "/home/odoo/src/odoo-14.0-OCB/odoo/osv/expression.py", line 668, in parse
dom = HIERARCHY_FUNCS[operator](left, ids2, model)
File "/home/odoo/src/odoo-14.0-OCB/odoo/osv/expression.py", line 576, in parent_of_domain
records = records[parent_name] - records.browse(parent_ids)
File "/home/odoo/src/odoo-14.0-OCB/odoo/models.py", line 5624, in __sub__
raise TypeError("Mixing apples and oranges: %s - %s" % (self, other))
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 652, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo-14.0-OCB/odoo/http.py", line 317, in _handle_exception
raise exception.with_traceback(None) from new_cause
TypeError: Mixing apples and oranges: res.partner(1,) - res.users(6,)
Hi,
When I click on Activate button of this module, this error occurred, can't be installed.
`
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1583, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 134, in retrying
result = func()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1610, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1807, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 696, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 46, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/dataset.py", line 33, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 461, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 448, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 76, in check_and_log
return method(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 491, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 615, in _button_immediate_function
registry = modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "", line 2, in new
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 87, in locked
return func(inst, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 90, in new
odoo.modules.load_modules(registry, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 487, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 371, in load_marked_modules
loaded, processed = load_module_graph(
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 230, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 71, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 763, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 829, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 749, in parse
self._tag_root(de)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 709, in _tag_root
raise ParseError(msg) from None # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
odoo.tools.convert.ParseError: while parsing None:10
Error while validating view:
Element '' cannot be located in parent view
View error context:
{'file': '/mnt/extra-addons/app_odoo_customize/views/app_odoo_customize_views.xml',
'line': 2,
'name': 'Login Layout',
'view': ir.ui.view(2101,),
'view.model': False,
'view.parent': ir.ui.view(183,),
'xmlid': 'replace_login'}
The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
at makeErrorFromResponse (https://totalcare.mywebsite.com/web/assets/debug/web.assets_backend.js:10216:19) (/web/static/src/core/network/rpc_service.js:34)
at XMLHttpRequest. (https://totalcare.mywebsite.com/web/assets/debug/web.assets_backend.js:10269:27) (/web/static/src/core/network/rpc_service.js:87)
`
Clean up accounting errors,清理会计科目报错(App Customize Odoo 14)
ENV:odoo14 community
'name': 'odoo 14,13 Customize OEM(Boost, Data reset)',
'version': '14.21.03.31',
http.py", line 316, in _handle_exception
raise exception.with_traceback(None) from new_cause
psycopg2.errors.InFailedSqlTransaction: current transaction is aborted, commands ignored until end of transaction block
in Odoo10,Purchase to choose multiple products, tax can not be brought out automatically
Hello,
Is it possible to add data resets for other modules?
As for the module "hr.expense"?
Cordially
does not remove the Create a free website with Odoo tag in the client portal
Hello,
I am completely new to Odoo and I am not a developper.
Could you explain what I did wrong ?
i download the addon and unzipped it in the var/lib/odoo/addons/12.0 folder.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1117, in _validate_fields
check(self)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 345, in check_xml
view_def = view.read_combined(['arch'])
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 794, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 743, in apply_view_inheritance
source = self.apply_view_inheritance(source, view_id, model, root_id=root_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 742, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 720, in apply_inheritance_specs
self.raise_view_error(("Element '%s' cannot be located in parent view") % tag, inherit_id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error
raise ValueError(message)
ValueError: L'élément '
Contexte de l'erreur :
Vue app.res.config.settings.view.form
[view_id: 852, xml_id: n/a, model: res.config.settings, parent_id: 247]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 758, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 663, in _tag_record
record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3879, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3793, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 462, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 428, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 462, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3610, in create
fields[0].determine_inverse(batch_recs)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1141, in determine_inverse
getattr(records, self.inverse)()
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
view.write(data)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 444, in write
return super(View, self).write(self._compute_defaults(vals))
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3335, in write
self._write(store_vals)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3471, in _write
self._validate_fields(vals)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1121, in validate_fields
raise ValidationError("%s\n\n%s" % (("Error while validating constraint"), tools.ustr(e)))
odoo.exceptions.ValidationError: ('Erreur lors de la validation de la contrainte\n\nL'élément '
app.res.config.settings.view.form
\n[view_id: 852, xml_id: n/a, model: res.config.settings, parent_id: 247]', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 941, in call
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 966, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 759, in call_kw
return _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 746, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 74, in check_and_log
return method(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 445, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 421, in load_modules
loaded_modules, update_module, models_to_check)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 313, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 802, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 865, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 755, in parse
self.parse(rec, mode)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 764, in parse
exc_info[2]
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 86, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 758, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 663, in _tag_record
record = model.with_context(rec_context)._load_records([data], self.mode == 'update')
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3879, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3793, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 462, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 428, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 462, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3610, in create
fields[0].determine_inverse(batch_recs)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1141, in determine_inverse
getattr(records, self.inverse)()
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch
view.write(data)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 444, in write
return super(View, self).write(self._compute_defaults(vals))
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3335, in write
self._write(store_vals)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3471, in _write
self._validate_fields(vals)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1121, in validate_fields
raise ValidationError("%s\n\n%s" % (("Error while validating constraint"), tools.ustr(e)))
odoo.tools.convert.ParseError: "Erreur lors de la validation de la contrainte
L'élément '
Contexte de l'erreur :
Vue app.res.config.settings.view.form
[view_id: 852, xml_id: n/a, model: res.config.settings, parent_id: 247]
None" while parsing /var/lib/odoo/addons/12.0/app_odoo_customize/views/res_config_settings_views.xml:4, near
app.res.config.settings.view.form
res.config.settings
错误:
Odoo Server Error
Traceback (most recent call last):
File "E:\odoo14\odoo-14.0E\odoo\tools\convert.py", line 677, in _tag_root
f(rec)
File "E:\odoo14\odoo-14.0E\odoo\tools\convert.py", line 580, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "E:\odoo14\odoo-14.0E\odoo\models.py", line 4203, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "E:\odoo14\odoo-14.0E\odoo\models.py", line 4132, in _load_records_create
return self.create(values)
File "", line 2, in create
File "E:\odoo14\odoo-14.0E\odoo\api.py", line 345, in _model_create_multi
return create(self, arg)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 482, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "E:\odoo14\odoo-14.0E\odoo\api.py", line 345, in _model_create_multi
return create(self, arg)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_fields.py", line 533, in create
recs = super().create(vals_list)
File "", line 2, in create
File "E:\odoo14\odoo-14.0E\odoo\api.py", line 345, in _model_create_multi
return create(self, arg)
File "E:\odoo14\odoo-14.0E\odoo\models.py", line 3893, in create
fields[0].determine_inverse(batch_recs)
File "E:\odoo14\odoo-14.0E\odoo\fields.py", line 1147, in determine_inverse
getattr(records, self.inverse)()
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 300, in _inverse_arch
view.write(data)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 500, in write
res = super(View, self).write(self._compute_defaults(vals))
File "E:\odoo14\odoo-14.0E\odoo\models.py", line 3682, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "E:\odoo14\odoo-14.0E\odoo\models.py", line 1250, in _validate_fields
check(self)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 411, in _check_xml
)).with_traceback(e.traceback) from None
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 391, in _check_xml
view.postprocess_and_fields(view_doc, validate=True)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 851, in postprocess_and_fields
arch, name_manager = self._postprocess_view(node, model, validate=validate)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 863, in _postprocess_view
self.postprocess(node, [], editable, name_manager)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 942, in postprocess
postprocessor(node, name_manager, node_info)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 1066, in _postprocess_tag_search
searchpanel[0], name_manager.Model._name, name_manager.validate, editable=False,
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 863, in _postprocess_view
self.postprocess(node, [], editable, name_manager)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 963, in postprocess
self.postprocess(child, current_node_path, node_info['editable'], name_manager)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 954, in postprocess
validator(node, name_manager, node_info)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 1090, in _validate_tag_field
self.handle_view_error(msg)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_ui_view.py", line 673, in handle_view_error
raise ValueError(formatted_message).with_traceback(from_traceback) from from_exception
odoo.exceptions.ValidationError: 验证视图时出错:
字段"routing_id" 不存在于模型 "mrp.bom"中
View name: mrp.bom.select.superbar
Error context:
view: ir.ui.view(1416,)
xmlid: view_mrp_bom_filter_superbar
view.model: mrp.bom
view.parent: ir.ui.view(1289,)
file: e:\odoo14\odoo-14.0e\myaddons\app_mrp_superbar\views\mrp_bom_views.xml
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "E:\odoo14\odoo-14.0E\odoo\http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "E:\odoo14\odoo-14.0E\odoo\http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "E:\odoo14\odoo-14.0E\odoo\service\model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "E:\odoo14\odoo-14.0E\odoo\http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "E:\odoo14\odoo-14.0E\odoo\http.py", line 912, in call
return self.method(*args, **kw)
File "E:\odoo14\odoo-14.0E\odoo\http.py", line 531, in response_wrap
response = f(*args, **kw)
File "E:\odoo14\odoo-14.0E\odoo\addons\web\controllers\main.py", line 1381, in call_button
action = self._call_kw(model, method, args, kwargs)
File "E:\odoo14\odoo-14.0E\odoo\addons\web\controllers\main.py", line 1369, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "E:\odoo14\odoo-14.0E\odoo\api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "E:\odoo14\odoo-14.0E\odoo\api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_module.py", line 474, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "E:\odoo14\odoo-14.0E\odoo\addons\base\models\ir_module.py", line 592, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "E:\odoo14\odoo-14.0E\odoo\modules\registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "E:\odoo14\odoo-14.0E\odoo\modules\loading.py", line 455, in load_modules
loaded_modules, update_module, models_to_check)
File "E:\odoo14\odoo-14.0E\odoo\modules\loading.py", line 348, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "E:\odoo14\odoo-14.0E\odoo\modules\loading.py", line 221, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "E:\odoo14\odoo-14.0E\odoo\modules\loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "E:\odoo14\odoo-14.0E\odoo\tools\convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "E:\odoo14\odoo-14.0E\odoo\tools\convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "E:\odoo14\odoo-14.0E\odoo\tools\convert.py", line 719, in parse
self._tag_root(de)
File "E:\odoo14\odoo-14.0E\odoo\tools\convert.py", line 685, in _tag_root
)) from e
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:\odoo14\odoo-14.0E\odoo\http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "E:\odoo14\odoo-14.0E\odoo\http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing file:/e:/odoo14/odoo-14.0e/myaddons/app_mrp_superbar/views/mrp_bom_views.xml:4, near
mrp.bom.select.superbar
mrp.bom
Below traceback on chat_count
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 1584, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/opt/odoo/odoo/service/model.py", line 134, in retrying
result = func()
File "/opt/odoo/odoo/http.py", line 1611, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoo/odoo/http.py", line 1808, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoo/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
result = endpoint(**request.params)
File "/opt/odoo/odoo/http.py", line 699, in route_wrapper
result = endpoint(self, *args, params_ok)
File "/opt/odoo/odoo/addons/mail/controllers/discuss.py", line 236, in mail_message_post
return thread.message_post({key: value for key, value in post_data.items() if key in self._get_allowed_message_post_params()}).message_format()[0]
File "/opt/odoo/odoo/addons/mail/models/mail_channel.py", line 603, in message_post
return super(Channel, self.with_context(mail_create_nosubscribe=True, mail_post_autofollow=False)).message_post(message_type=message_type, **kwargs)
File "/opt/odoo/odoo/addons/rating/models/mail_thread.py", line 15, in message_post
message = super(MailThread, self).message_post(**kwargs)
File "/opt/odoo/odoo/addons/mail/models/mail_thread.py", line 2024, in message_post
self._notify_thread(new_message, msg_values, **notif_kwargs)
File "/mnt/extra-addons/app-odoo/app_chatgpt/models/mail_channel.py", line 180, in _notify_thread
chat_count = self.chat_countAttributeError: 'mail.channel' object has no attribute 'chat_count'
楼主是否可出个教程,由浅入深的介绍下odoo方面的开发,目前发现国内的资料太少而且不成体系,看了也只了解个皮毛
如题,在应用的列表界面,勾选多个已安装的模块,下拉更多选择卸载功能,只能卸载第一个模块,其他的模块不能卸载
log有类似报错:odoo.models: Comparing apples and oranges: ir.module.module(155,)debug未找到失败的原因
Added menu to delete Theme Store and Third-Party Apps. (app_odoo_customize)
version:2021-05-15
2021-05-16 16:33:17,817 18272 ERROR odoo12 odoo.sql_db: bad query: delete from stock_quant_package
ERROR: null value in column "package_id" violates not-null constraint
DETAIL: Failing row contains (1, null, 23, 9, 2, 2021-05-16 11:33:07.154073, 2, 2021-05-16 11:33:07.184037).
CONTEXT: SQL statement "UPDATE ONLY "public"."stock_package_level" SET "package_id" = NULL WHERE $1 OPERATOR(pg_catalog.=) "package_id""
2021-05-16 16:33:17,767 18272 INFO odoo12 werkzeug: 127.0.0.1 - - [16/May/2021 16:33:17] "POST /web/dataset/call_button HTTP/1.1" 200 - 4 0.011 0.020
2021-05-16 16:33:17,802 18272 INFO odoo12 werkzeug: 127.0.0.1 - - [16/May/2021 16:33:17] "POST /web/dataset/call_kw/res.config.settings/read HTTP/1.1" 200 - 4 0.006 0.006
Hello,
When selecting the columns in a particular view, the next time you visit the view all fields are set to default. It should remember the last state applied.
Thanks in advance!
安裝app_dynamic_list模組之後
系統運作沒有產生變化
還需要增加甚麼配置動作嗎?
Hi,
I installed your module app_stock_putaway but when I go from the settings menu and I try to add a new product and try to select the locations nothing is loaded but If I go from locations->putaway strategy the locations are shown.
Salut,
Josep M
`错误:
Odoo Server Error
Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 671, in apply_inheritance_specs
pre_locate=pre_locate)
File "/opt/odoo13/odoo/odoo/tools/template_inheritance.py", line 230, in apply_inheritance_specs
_("Element '%s' cannot be located in parent view") % tag
ValueError: 父视图中没有找到元素 '
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 577, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/opt/odoo13/odoo/odoo/models.py", line 4176, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/opt/odoo13/odoo/odoo/models.py", line 4090, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/opt/odoo13/odoo/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 475, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/opt/odoo13/odoo/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/opt/odoo13/odoo/odoo/models.py", line 3851, in create
fields[0].determine_inverse(batch_recs)
File "/opt/odoo13/odoo/odoo/fields.py", line 1154, in determine_inverse
getattr(records, self.inverse)()
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/opt/odoo13/odoo/addons/website_theme_install/models/theme_models.py", line 226, in write
res = super(IrUiView, other_views).write(vals)
File "/opt/odoo13/odoo/addons/website/models/ir_ui_view.py", line 51, in write
return super(View, self).write(vals)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 493, in write
res = super(View, self).write(self._compute_defaults(vals))
File "/opt/odoo13/odoo/odoo/models.py", line 3640, in write
real_recs._validate_fields(vals, inverse_fields)
File "/opt/odoo13/odoo/odoo/models.py", line 1212, in _validate_fields
check(self)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 387, in _check_xml
view_def = view.read_combined(['arch'])
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 745, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 695, in apply_view_inheritance
source = self.apply_view_inheritance(source, view_id, model, root_id=root_id)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 694, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 673, in apply_inheritance_specs
self.raise_view_error(str(e), inherit_id)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 614, in raise_view_error
raise ValueError(message)
ValueError: 父视图中没有找到元素 '
错误的上下文:
视图 app.res.config.settings.view.form
[view_id: 670, xml_id: n/a, model: res.config.settings, parent_id: 250]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo13/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/odoo13/odoo/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo13/odoo/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 915, in call
return self.method(*args, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1343, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1331, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo13/odoo/odoo/api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/odoo13/odoo/odoo/api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_module.py", line 464, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_module.py", line 574, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/opt/odoo13/odoo/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo13/odoo/odoo/modules/loading.py", line 428, in load_modules
loaded_modules, update_module, models_to_check)
File "/opt/odoo13/odoo/odoo/modules/loading.py", line 315, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/opt/odoo13/odoo/odoo/modules/loading.py", line 225, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/opt/odoo13/odoo/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 736, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 803, in convert_xml_import
obj.parse(doc.getroot())
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 721, in parse
exc_info[2]
File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/opt/odoo13/odoo/odoo/tools/convert.py", line 577, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/opt/odoo13/odoo/odoo/models.py", line 4176, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/opt/odoo13/odoo/odoo/models.py", line 4090, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/opt/odoo13/odoo/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 475, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/opt/odoo13/odoo/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/opt/odoo13/odoo/odoo/models.py", line 3851, in create
fields[0].determine_inverse(batch_recs)
File "/opt/odoo13/odoo/odoo/fields.py", line 1154, in determine_inverse
getattr(records, self.inverse)()
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/opt/odoo13/odoo/addons/website_theme_install/models/theme_models.py", line 226, in write
res = super(IrUiView, other_views).write(vals)
File "/opt/odoo13/odoo/addons/website/models/ir_ui_view.py", line 51, in write
return super(View, self).write(vals)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 493, in write
res = super(View, self).write(self._compute_defaults(vals))
File "/opt/odoo13/odoo/odoo/models.py", line 3640, in write
real_recs._validate_fields(vals, inverse_fields)
File "/opt/odoo13/odoo/odoo/models.py", line 1212, in _validate_fields
check(self)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 387, in _check_xml
view_def = view.read_combined(['arch'])
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 745, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 695, in apply_view_inheritance
source = self.apply_view_inheritance(source, view_id, model, root_id=root_id)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 694, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 673, in apply_inheritance_specs
self.raise_view_error(str(e), inherit_id)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_ui_view.py", line 614, in raise_view_error
raise ValueError(message)
odoo.tools.convert.ParseError: "父视图中没有找到元素 '
错误的上下文:
视图 app.res.config.settings.view.form
[view_id: 670, xml_id: n/a, model: res.config.settings, parent_id: 250]" while parsing /opt/odoo13/odoo13-custom-addons/app_odoo_customize/views/res_config_settings_views.xml:2, near
app.res.config.settings.view.form
res.config.settings
Hello,
I got an error when installing any of superbar addons on Odoo v11 CE.
Here is end of the error log:
2021-11-09 21:26:33,513 12191 ERROR fmpi odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/path/to/odoo/tools/convert.py", line 745, in parse
….
File "/path/to/odoo/addons/base/ir/ir_ui_view.py", line 350, in _check_xml
raise ValidationError(_('Invalid view definition'))
odoo.exceptions.ValidationError: ('Invalid view definition', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
…
File "/path/to/odoo/addons/base/ir/ir_ui_view.py", line 350, in _check_xml
raise ValidationError(_('Invalid view definition'))
odoo.tools.convert.ParseError: "Invalid view definition
None" while parsing /path/to/odoo/extra/sunpop/app_project_superbar/views/project_project_views.xml:4, near
<record model="ir.ui.view" id="app_view_project_project_filter">
<field name="name">app.project.project.select</field>
<field name="model">project.project</field>
<field name="inherit_id" ref="project.view_project_project_filter"/>
<field name="arch" type="xml">
<xpath expr="//search" position="inside">
<superbar view_mode="kanban,tree">
<field name="company_id" groups="base.group_multi_company"/>
<field name="user_id"/>
<field name="partner_id" widget="ztree_search" parent_key="parent_id" level="0"/>
</superbar>
</xpath>
</field>
</record>
OS: Ubuntu 20.04
按照指南使用app_Customize模块先清除科目表,然后安装!但全部报错!
错误:
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 682, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 358, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 346, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 911, in call
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 530, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1363, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1351, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 474, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 592, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 453, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 346, in load_marked_modules
loaded, processed = load_module_graph(
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 221, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 729, in convert_file
convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 771, in convert_csv_import
result = env[model].load(fields, datas)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 998, in load
if isinstance(model_fields[field_path[0]], odoo.fields.Many2one):
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 314, in _handle_exception
raise exception.with_traceback(None) from new_cause
KeyError: 'code_prefix'
不知道是什么原因,无法针对app_base_chinese提PR,所以在这里反馈一下。
# 超级用户改时区为**
ids = env['res.users'].sudo().with_context(lang='zh_CN').search([
('id', '=', 2)
])
ids.write({'tz': "Asia/Shanghai"})
这里设置的只是admin用户的时区,个人觉得把这两个用户的时区都设置为**会比较合适点。
代码如下:
# 超级用户改时区为**
ids = env['res.users'].sudo().with_context(lang='zh_CN', active_test=False).browse([1, 2])
ids.write({'tz': "Asia/Shanghai"})
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 641, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 333, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 101, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 326, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 941, in call
return self.method(*args, **kw)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 506, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 895, in call_button
action = self._call_kw(model, method, args, {})
File "/usr/lib/python2.7/dist-packages/odoo/addons/web/controllers/main.py", line 883, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/addons/account/models/account_invoice.py", line 582, in action_invoice_open
return to_open_invoices.invoice_validate()
File "/usr/lib/python2.7/dist-packages/odoo/addons/account_document/models/account_invoice.py", line 26, in invoice_validate
"""
File "/usr/lib/python2.7/dist-packages/odoo/models.py", line 5007, in filtered
return self.browse([rec.id for rec in self if func(rec)])
File "/usr/lib/python2.7/dist-packages/odoo/addons/account_document/models/account_invoice.py", line 26, in
"""
AttributeError: 'account.invoice' object has no attribute 'use_documents'
Error:
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 677, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 580, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/usr/lib/python3/dist-packages/odoo/models.py", line 4209, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/usr/lib/python3/dist-packages/odoo/models.py", line 4138, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 345, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 482, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 345, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_fields.py", line 533, in create
recs = super().create(vals_list)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 345, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3899, in create
fields[0].determine_inverse(batch_recs)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1185, in determine_inverse
getattr(records, self.inverse)()
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 300, in _inverse_arch
view.write(data)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/theme_models.py", line 267, in write
res = super(IrUiView, other_views).write(vals)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_ui_view.py", line 68, in write
return super(View, self).write(vals)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 500, in write
res = super(View, self).write(self._compute_defaults(vals))
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3688, in write
real_recs._validate_fields(vals, inverse_fields)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 1256, in _validate_fields
check(self)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 411, in _check_xml
)).with_traceback(e.traceback) from None
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 385, in _check_xml
view_def = view.read_combined(['arch'])
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 809, in read_combined
arch = root.apply_view_inheritance(arch_tree, self.model)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 750, in apply_view_inheritance
return self._apply_view_inheritance(source, inherit_tree)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 759, in _apply_view_inheritance
source = view._apply_view_inheritance(source, inherit_tree)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 758, in _apply_view_inheritance
source = view.apply_inheritance_specs(source, arch_tree)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 735, in apply_inheritance_specs
self.handle_view_error(str(e))
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_ui_view.py", line 673, in handle_view_error
raise ValueError(formatted_message).with_traceback(from_traceback) from from_exception
odoo.exceptions.ValidationError: Error while validating view:
El elemento '
View name: app.res.config.settings.view.form
Error context:
view: ir.ui.view(1948,)
xmlid: app_res_config_settings_view_form
view.model: res.config.settings
view.parent: ir.ui.view(278,)
file: /mnt/extra-addons/app_odoo_customize/views/res_config_settings_views.xml
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 912, in call
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1381, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1369, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 73, in check_and_log
return method(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 474, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_module.py", line 592, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 89, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 455, in load_modules
loaded_modules, update_module, models_to_check)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 348, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 221, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 69, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 733, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 799, in convert_xml_import
obj.parse(doc.getroot())
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 719, in parse
self._tag_root(de)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 677, in _tag_root
f(rec)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 685, in _tag_root
)) from e
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
odoo.tools.convert.ParseError: while parsing /mnt/extra-addons/app_odoo_customize/views/res_config_settings_views.xml:4, near
app.res.config.settings.view.form
res.config.settings
when i install app_odoo_customize then restart and update server it's still not show in setting bar
Functions such as Show Enterprise Tag are unavailable.
The following functions are unavailable:
Show Enterprise Tag
Show Documentation
Show Powered by Odoo
Modify the odoo title
Want to add delete Theme Store and Third Party Apps menu.
if i tick Show Quick Language Switcher : I don't see my languages in usermenu.
if i don't tick Show Support, i still see Support menu in UserMenu
If i don't tick Show documentation, I still get Menu Documentation in UserMenu.
你要安装的模块'app_base_chinese'依赖于‘app_base’,请问app_base在哪有下载
it's possible to install version 10 in odoo 11? thanks
File "/home/odoo/.local/share/Odoo/addons/11.0/app_odoo_customize/models/app_theme_config_settings.py", line 126
except Exception, e:
^
SyntaxError: invalid syntax
老哥,你害我找的好苦啊,一点进去询价单的打印,就抛bug出来。你在Transifex里面的翻译,前面少了个 <'> ,后面的<object.name> 解析式不应该翻译的 : (
I had to delete my old database because a strong problem with localization files.
After that, i decided recover my database, so, i restarted odoo but i got the next bug:
salahaddin@TulipanROG ~/Proyectos/Works/rotafilo local-prod ● ? docker exec -it odoo.web bash KILL(-9) ↵ 4219 10:31:26
odoo@0879d538d2b2:/$ cat var/log/odoo/openerp-server.log
2018-06-22 07:32:24,342 1 WARNING rotafilo odoo.modules.loading: Transient module states were reset
2018-06-22 07:32:24,394 1 ERROR rotafilo odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 85, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 312, in load_modules
report=report, models_to_check=models_to_check)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 172, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 783, in convert_file
with file_open(pathname, 'rb') as fp:
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 193, in file_open
pathinfo=pathinfo, basename=basename)
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 211, in _fileopen
raise ValueError("Unknown path: %s" % name)
ValueError: Unknown path: /base/res/res.lang.csv
2018-06-22 07:32:24,395 1 CRITICAL rotafilo odoo.service.server: Failed to initialize database `rotafilo`.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 925, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 85, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 312, in load_modules
report=report, models_to_check=models_to_check)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 172, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 783, in convert_file
with file_open(pathname, 'rb') as fp:
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 193, in file_open
pathinfo=pathinfo, basename=basename)
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 211, in _fileopen
raise ValueError("Unknown path: %s" % name)
ValueError: Unknown path: /base/res/res.lang.csv
2018-06-22 07:32:26,567 14 WARNING rotafilo odoo.modules.loading: Transient module states were reset
2018-06-22 07:32:26,567 14 ERROR rotafilo odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 59, in __new__
return cls.registries[db_name]
File "/usr/lib/python3/dist-packages/odoo/tools/func.py", line 68, in wrapper
return func(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/tools/lru.py", line 44, in __getitem__
a = self.d[obj].me
KeyError: 'rotafilo'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 85, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 312, in load_modules
report=report, models_to_check=models_to_check)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 172, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 783, in convert_file
with file_open(pathname, 'rb') as fp:
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 193, in file_open
pathinfo=pathinfo, basename=basename)
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 211, in _fileopen
raise ValueError("Unknown path: %s" % name)
ValueError: Unknown path: /base/res/res.lang.csv
2018-06-22 07:32:26,574 14 ERROR rotafilo werkzeug: Error on request:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 205, in run_wsgi
execute(self.server.app)
File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 193, in execute
application_iter = app(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 166, in application
return application_unproxied(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 154, in application_unproxied
result = handler(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1318, in __call__
return self.dispatch(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1292, in __call__
return self.app(environ, start_wrapped)
File "/usr/lib/python3/dist-packages/werkzeug/wsgi.py", line 599, in __call__
return self.app(environ, start_response)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 1473, in dispatch
odoo.registry(db).check_signaling()
File "/usr/lib/python3/dist-packages/odoo/__init__.py", line 76, in registry
return modules.registry.Registry(database_name)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 61, in __new__
return cls.new(db_name)
File "/usr/lib/python3/dist-packages/odoo/modules/registry.py", line 85, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 312, in load_modules
report=report, models_to_check=models_to_check)
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 172, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/usr/lib/python3/dist-packages/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/usr/lib/python3/dist-packages/odoo/tools/convert.py", line 783, in convert_file
with file_open(pathname, 'rb') as fp:
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 193, in file_open
pathinfo=pathinfo, basename=basename)
File "/usr/lib/python3/dist-packages/odoo/tools/misc.py", line 211, in _fileopen
raise ValueError("Unknown path: %s" % name)
ValueError: Unknown path: /base/res/res.lang.csv
I decided to delete this repository's path from addons path and the bug disappeared.
Why?
i think it's because your are not using the best practice for migrate this module to 11.0
.
cant install add-ons app_web_enterprise
while installing it says it is dependent on some website module that is no available, please solve it
app_odoo_customize 模块有这句:
class BaseLanguageInstall(models.TransientModel):
_inherit = "base.language.install"
def lang_install(self):
self.ensure_one()
if self.overwrite:
self.env.cr.execute("""
delete from ir_translation
where lang=%s
""", (self.lang,))
self.env.cr.commit()
return super(BaseLanguageInstall, self).lang_install()
当用户reload 语言包的时候,会把用户在odoo里某些模块如调查表中自定义内容的中英文全部清除掉,导致辛辛苦苦弄个中英文调查表,一旦reload翻译包,就回到解放前了。
According to OCA migration modules, using manifest
files instead of the old openerp
file is the best practice.
Are you interested in updating this package using this best practices?
PD: can we port the system icon option to 11.0?
I cloned this repository and I added its path to the options and I run odoo with all add-ons.
But, I get this bug:
I don't get this problem with app_odoo_customize
(i deleted all other modules and I tested it).
UPDATE:
The problem exists with app_product_type_sequence
and app_stock_picking_type_group
.
Thank you!
I'm not sure if that is an issue or I'm missing something. I had a fresh odoo install and when I got everything configured and running with all addons installed and wanted to invite new users when the user set the new passsword and tryied to log in for the first time the server gives back a internal server error.
If I log in back again (after clearing cache) to the administrator account it works as normal but whenever I try to log in with new users it won't work.
If I uninstall&remove the app-odoo from the addons folder I can access odoo with the new users without problems.
I will provide any information you think would be useful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.