不是很懂这个异步任务的优势在哪?odoo作为B/S架构,导入等待时直接再开一个新页面不就好了吗?
G
grey
@grey
-
Odoo的异步队列神器-queue_job -
修改gooderp的money模块然后就加载报错了,求解2019-04-02 08:53:04,424 13308 INFO ? odoo: Odoo version 10.0 2019-04-02 08:53:04,424 13308 INFO ? odoo: Using configuration file at D:\odoo\gooderp.conf 2019-04-02 08:53:04,424 13308 INFO ? odoo: addons paths: [u'C:\\Users\\zhowhen\\AppData\\Local\\OpenERP S.A.\\Odoo\\addons\\10.0', u'D:\\odoo\\gooderp_\\gooderp', u'D:\\odoo\\gooderp_\\gooderp_base', u'D:\\odoo\\gooderp_\\myaddons_gooderp', 'D:\\odoo\\gooderp_\\gooderp_base\\odoo\\addons'] 2019-04-02 08:53:04,424 13308 INFO ? odoo: database: [email protected]:65432 2019-04-02 08:53:04,436 13308 INFO ? odoo.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069 2019-04-02 08:53:09,240 13308 INFO ? odoo.addons.report.models.report: You need Wkhtmltopdf to print a pdf version of the reports. 2019-04-02 08:53:09,388 13308 INFO ? odoo.http: HTTP Configuring static files 2019-04-02 08:53:09,427 13308 INFO back odoo.modules.loading: loading 1 modules... 2019-04-02 08:53:09,443 13308 INFO back odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries 2019-04-02 08:53:09,454 13308 WARNING back odoo.modules.graph: module resource: not installable, skipped 2019-04-02 08:53:09,525 13308 INFO back odoo.modules.loading: loading 65 modules... 2019-04-02 08:53:09,947 13308 INFO back odoo.modules.registry: module buy: creating or updating database tables 2019-04-02 08:53:09,954 13308 WARNING back py.warnings: D:\odoo\gooderp_\gooderp_base\odoo\models.py:362: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal elif not all(cols[field.name][key] == vals[key] for key in vals): 2019-04-02 08:53:10,635 13308 WARNING back odoo.modules.registry: Models have no table: bank.statements.collect.report, bank.statements.collect.report.wizard. 2019-04-02 08:53:10,637 13308 INFO back odoo.modules.registry: Recreate table of model bank.statements.collect.report. 2019-04-02 08:53:10,642 13308 INFO back odoo.modules.registry: Recreate table of model bank.statements.collect.report.wizard. 2019-04-02 08:53:10,655 13308 ERROR back odoo.modules.registry: Model bank.statements.collect.report has no table. 2019-04-02 08:53:10,680 13308 ERROR back odoo.modules.registry: Model bank.statements.collect.report.wizard has no table. 2019-04-02 08:53:10,694 13308 INFO back odoo.modules.loading: loading buy/data/buy_data.xml 2019-04-02 08:53:10,709 13308 INFO back odoo.modules.loading: loading buy/security/groups.xml 2019-04-02 08:53:10,717 13308 INFO back odoo.modules.loading: loading buy/views/buy_order_view.xml 2019-04-02 08:53:10,963 13308 INFO back odoo.modules.loading: loading buy/views/buy_receipt_view.xml 2019-04-02 08:53:11,188 13308 INFO back odoo.modules.loading: loading buy/views/buy_adjust_view.xml 2019-04-02 08:53:11,266 13308 INFO back odoo.modules.loading: loading buy/views/buy_action.xml 2019-04-02 08:53:11,305 13308 INFO back odoo.modules.loading: loading buy/views/buy_menu.xml 2019-04-02 08:53:11,384 13308 INFO back odoo.modules.loading: loading buy/views/vendor_goods_view.xml 2019-04-02 08:53:11,539 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_order_track_wizard_view.xml 2019-04-02 08:53:11,579 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_order_detail_wizard_view.xml 2019-04-02 08:53:11,614 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_summary_goods_wizard_view.xml 2019-04-02 08:53:11,648 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_summary_partner_wizard_view.xml 2019-04-02 08:53:11,683 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_payment_wizard_view.xml 2019-04-02 08:53:11,717 13308 INFO back odoo.modules.loading: loading buy/wizard/supplier_statements_wizard_view.xml 2019-04-02 08:53:11,765 13308 INFO back odoo.modules.loading: loading buy/report/buy_order_track_view.xml 2019-04-02 08:53:11,795 13308 INFO back odoo.modules.loading: loading buy/report/buy_order_detail_view.xml 2019-04-02 08:53:11,823 13308 INFO back odoo.modules.loading: loading buy/report/buy_summary_goods_view.xml 2019-04-02 08:53:11,855 13308 INFO back odoo.modules.loading: loading buy/report/buy_summary_partner_view.xml 2019-04-02 08:53:11,884 13308 INFO back odoo.modules.loading: loading buy/report/buy_payment_view.xml 2019-04-02 08:53:11,911 13308 INFO back odoo.modules.loading: loading buy/report/supplier_statements_view.xml 2019-04-02 08:53:11,963 13308 INFO back odoo.modules.loading: loading buy/report/report_data.xml 2019-04-02 08:53:12,180 13308 INFO back odoo.modules.loading: loading buy/security/ir.model.access.csv 2019-04-02 08:53:12,282 13308 ERROR back odoo.modules.registry: Failed to load registry Traceback (most recent call last): File "D:\odoo\gooderp_\gooderp_base\odoo\modules\registry.py", line 82, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 335, in load_modules force, status, report, loaded_modules, update_module) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 237, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 156, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 95, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "D:\odoo\gooderp_\gooderp_base\odoo\tools\convert.py", line 839, in convert_file convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate) File "D:\odoo\gooderp_\gooderp_base\odoo\tools\convert.py", line 895, in convert_csv_import raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg)) Exception: Module loading buy failed: file buy\security/ir.model.access.csv could not be processed: \u5728\u5b57\u6bb5'Object'\u4e2d\u6ca1\u627e\u5230\u5339\u914d\u7684\u8bb0\u5f55\u5916\u90e8id 'model_ve_goods' 2019-04-02 08:53:12,283 13308 INFO back werkzeug: 127.0.0.1 - - [02/Apr/2019 08:53:12] "GET / HTTP/1.1" 500 - 2019-04-02 08:53:12,289 13308 ERROR back werkzeug: Error on request: Traceback (most recent call last): File "D:\work_env\odoo_env\lib\site-packages\werkzeug\serving.py", line 270, in run_wsgi execute(self.server.app) File "D:\work_env\odoo_env\lib\site-packages\werkzeug\serving.py", line 258, in execute application_iter = app(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\service\server.py", line 249, in app return self.app(e, s) File "D:\odoo\gooderp_\gooderp_base\odoo\service\wsgi_server.py", line 186, in application return application_unproxied(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\service\wsgi_server.py", line 172, in application_unproxied result = handler(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\http.py", line 1308, in __call__ return self.dispatch(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\http.py", line 1282, in __call__ return self.app(environ, start_wrapped) File "D:\work_env\odoo_env\lib\site-packages\werkzeug\wsgi.py", line 766, in __call__ return self.app(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\http.py", line 1464, in dispatch odoo.registry(db).check_signaling() File "D:\odoo\gooderp_\gooderp_base\odoo\__init__.py", line 52, in registry return modules.registry.Registry(database_name) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\registry.py", line 59, in __new__ return cls.new(db_name) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\registry.py", line 82, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 335, in load_modules force, status, report, loaded_modules, update_module) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 237, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 156, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 95, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "D:\odoo\gooderp_\gooderp_base\odoo\tools\convert.py", line 839, in convert_file convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate) File "D:\odoo\gooderp_\gooderp_base\odoo\tools\convert.py", line 895, in convert_csv_import raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg)) Exception: Module loading buy failed: file buy\security/ir.model.access.csv could not be processed: \u5728\u5b57\u6bb5'Object'\u4e2d\u6ca1\u627e\u5230\u5339\u914d\u7684\u8bb0\u5f55\u5916\u90e8id 'model_ve_goods' 2019-04-02 08:53:12,301 13308 INFO back odoo.modules.loading: loading 1 modules... 2019-04-02 08:53:12,316 13308 INFO back odoo.modules.loading: 1 modules loaded in 0.02s, 0 queries 2019-04-02 08:53:12,331 13308 WARNING back odoo.modules.graph: module resource: not installable, skipped 2019-04-02 08:53:12,414 13308 INFO back odoo.modules.loading: loading 65 modules... 2019-04-02 08:53:12,779 13308 INFO back odoo.modules.registry: module buy: creating or updating database tables 2019-04-02 08:53:13,331 13308 WARNING back odoo.modules.registry: Models have no table: bank.statements.collect.report, bank.statements.collect.report.wizard. 2019-04-02 08:53:13,332 13308 INFO back odoo.modules.registry: Recreate table of model bank.statements.collect.report. 2019-04-02 08:53:13,338 13308 INFO back odoo.modules.registry: Recreate table of model bank.statements.collect.report.wizard. 2019-04-02 08:53:13,349 13308 ERROR back odoo.modules.registry: Model bank.statements.collect.report has no table. 2019-04-02 08:53:13,372 13308 ERROR back odoo.modules.registry: Model bank.statements.collect.report.wizard has no table. 2019-04-02 08:53:13,384 13308 INFO back odoo.modules.loading: loading buy/data/buy_data.xml 2019-04-02 08:53:13,398 13308 INFO back odoo.modules.loading: loading buy/security/groups.xml 2019-04-02 08:53:13,404 13308 INFO back odoo.modules.loading: loading buy/views/buy_order_view.xml 2019-04-02 08:53:13,543 13308 INFO back odoo.modules.loading: loading buy/views/buy_receipt_view.xml 2019-04-02 08:53:13,759 13308 INFO back odoo.modules.loading: loading buy/views/buy_adjust_view.xml 2019-04-02 08:53:13,838 13308 INFO back odoo.modules.loading: loading buy/views/buy_action.xml 2019-04-02 08:53:13,872 13308 INFO back odoo.modules.loading: loading buy/views/buy_menu.xml 2019-04-02 08:53:13,944 13308 INFO back odoo.modules.loading: loading buy/views/vendor_goods_view.xml 2019-04-02 08:53:14,071 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_order_track_wizard_view.xml 2019-04-02 08:53:14,105 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_order_detail_wizard_view.xml 2019-04-02 08:53:14,137 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_summary_goods_wizard_view.xml 2019-04-02 08:53:14,168 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_summary_partner_wizard_view.xml 2019-04-02 08:53:14,201 13308 INFO back odoo.modules.loading: loading buy/wizard/buy_payment_wizard_view.xml 2019-04-02 08:53:14,233 13308 INFO back odoo.modules.loading: loading buy/wizard/supplier_statements_wizard_view.xml 2019-04-02 08:53:14,279 13308 INFO back odoo.modules.loading: loading buy/report/buy_order_track_view.xml 2019-04-02 08:53:14,306 13308 INFO back odoo.modules.loading: loading buy/report/buy_order_detail_view.xml 2019-04-02 08:53:14,335 13308 INFO back odoo.modules.loading: loading buy/report/buy_summary_goods_view.xml 2019-04-02 08:53:14,365 13308 INFO back odoo.modules.loading: loading buy/report/buy_summary_partner_view.xml 2019-04-02 08:53:14,394 13308 INFO back odoo.modules.loading: loading buy/report/buy_payment_view.xml 2019-04-02 08:53:14,420 13308 INFO back odoo.modules.loading: loading buy/report/supplier_statements_view.xml 2019-04-02 08:53:14,473 13308 INFO back odoo.modules.loading: loading buy/report/report_data.xml 2019-04-02 08:53:14,654 13308 INFO back odoo.modules.loading: loading buy/security/ir.model.access.csv 2019-04-02 08:53:14,744 13308 ERROR back odoo.modules.registry: Failed to load registry Traceback (most recent call last): File "D:\odoo\gooderp_\gooderp_base\odoo\modules\registry.py", line 82, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 335, in load_modules force, status, report, loaded_modules, update_module) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 237, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 156, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 95, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "D:\odoo\gooderp_\gooderp_base\odoo\tools\convert.py", line 839, in convert_file convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate) File "D:\odoo\gooderp_\gooderp_base\odoo\tools\convert.py", line 895, in convert_csv_import raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg)) Exception: Module loading buy failed: file buy\security/ir.model.access.csv could not be processed: \u5728\u5b57\u6bb5'Object'\u4e2d\u6ca1\u627e\u5230\u5339\u914d\u7684\u8bb0\u5f55\u5916\u90e8id 'model_ve_goods' 2019-04-02 08:53:14,746 13308 INFO back werkzeug: 127.0.0.1 - - [02/Apr/2019 08:53:14] "GET /favicon.ico HTTP/1.1" 500 - 2019-04-02 08:53:14,750 13308 ERROR back werkzeug: Error on request: Traceback (most recent call last): File "D:\work_env\odoo_env\lib\site-packages\werkzeug\serving.py", line 270, in run_wsgi execute(self.server.app) File "D:\work_env\odoo_env\lib\site-packages\werkzeug\serving.py", line 258, in execute application_iter = app(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\service\server.py", line 249, in app return self.app(e, s) File "D:\odoo\gooderp_\gooderp_base\odoo\service\wsgi_server.py", line 186, in application return application_unproxied(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\service\wsgi_server.py", line 172, in application_unproxied result = handler(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\http.py", line 1308, in __call__ return self.dispatch(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\http.py", line 1282, in __call__ return self.app(environ, start_wrapped) File "D:\work_env\odoo_env\lib\site-packages\werkzeug\wsgi.py", line 766, in __call__ return self.app(environ, start_response) File "D:\odoo\gooderp_\gooderp_base\odoo\http.py", line 1464, in dispatch odoo.registry(db).check_signaling() File "D:\odoo\gooderp_\gooderp_base\odoo\__init__.py", line 52, in registry return modules.registry.Registry(database_name) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\registry.py", line 59, in __new__ return cls.new(db_name) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\registry.py", line 82, in new odoo.modules.load_modules(registry._db, force_demo, status, update_module) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 335, in load_modules force, status, report, loaded_modules, update_module) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 237, in load_marked_modules loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks) File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 156, in load_module_graph _load_data(cr, module_name, idref, mode, kind='data') File "D:\odoo\gooderp_\gooderp_base\odoo\modules\loading.py", line 95, in _load_data tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report) File "D:\odoo\gooderp_\gooderp_base\odoo\tools\convert.py", line 839, in convert_file convert_csv_import(cr, module, pathname, fp.read(), idref, mode, noupdate) File "D:\odoo\gooderp_\gooderp_base\odoo\tools\convert.py", line 895, in convert_csv_import raise Exception(_('Module loading %s failed: file %s could not be processed:\n %s') % (module, fname, warning_msg)) Exception: Module loading buy failed: file buy\security/ir.model.access.csv could not be processed: \u5728\u5b57\u6bb5'Object'\u4e2d\u6ca1\u627e\u5230\u5339\u914d\u7684\u8bb0\u5f55\u5916\u90e8id 'model_ve_goods'
-
一个简单的复写按键功能报错@digitalsatori 是啊,就是一个例子,pycharm由语法错误会标红的,但是并没有。
-
一个简单的复写按键功能报错@api.model def do_clear_done(self): dones = self.search([('is_done', '=', True)]) dones.write({'active': False}) return True
报错 TypeError: cannot convert dictionary update sequence element #0 to a sequence
求问怎么解决啊