Odoo 14:销售点安装错误 一般建议如果您真的想修复它... 坚持试错... 一些Odoo背景

问题描述

我已经使用认设置在Docker中安装了运行odoo 14,而没有进行任何其他自定义。在过去的几天里,我一直尝试从odoo内安装销售点模块,但没有成功-每当我收到以下错误时。

有人可以帮助我找出问题所在并让PoS正常工作吗?

谢谢!

    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,**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,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],kwargs)
      File "/usr/lib/python3/dist-packages/odoo/api.py",line 396,in call_kw
result = _call_kw_multi(method,model,line 383,in _call_kw_multi
result = method(recs,**kwargs)
      File "<decorator-gen-71>",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,**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,noupdate,kind)
      File "/usr/lib/python3/dist-packages/odoo/tools/convert.py",line 733,in convert_file
convert_xml_import(cr,module,fp,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 684,in _tag_root
etree.tostring(rec,encoding='unicode').rstrip()
    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
    odoo.tools.convert.ParseError: while parsing /usr/lib/python3/dist-packages/odoo/addons/point_of_sale/data/point_of_sale_data.xml:13,near
    <record id="product_category_pos" model="product.category">
        <field name="parent_id" ref="product.product_category_1"/>
        <field name="name">PoS</field>
    </record>

解决方法

一般建议

如果要增加成功的机会,请不要尝试从其他版本或第三方加载任何模块,而要坚持基本功能,或者尝试使用较旧的版本或受其他版本支持的包装公司,例如https://github.com/Elico-Corp/odoo-docker或叉子(例如https://hub.docker.com/r/flectrahq/flectra/

如果您真的想修复它...

您似乎使用的是销售点插件的不兼容版本。

您将需要从Odoo高于平均水平的文档开始:https://www.odoo.com/documentation/14.0/

由于您正在处理模块,因此您需要花一些时间来https://www.odoo.com/documentation/14.0/howtos/backend.html

如果您想了解更多有关Python的知识,请花一些时间,然后从类似以下的内容开始:https://www.udemy.com/course/the-complete-python-course/,然后转到https://subscription.packtpub.com/search?query=working%20with%20odoo%2011&released=Available

坚持试错...

要移动数据库,只需转到数据库管理器:http:// odoo:8069 / web / database / manager#action = database_manager并从那里导出数据库,然后通过新实例上的相同URL导入它

一些Odoo背景

除了任何软件有时都会带来重大变化的事实,以及任何ERP的内部都要求高水平的技术知识外,Odoo CE似乎尤其受到那些特别粗心的Odoo员工的不利影响,因为“重大变化”会发挥他们的激励策略使用他们的托管服务-这是他们的主要收入模式。 (这也证明了他们根据非GPL许可重写模块的努力。)

他们显然缺乏推动开放源代码的人类信念。让我们继续激励他们分享,帮助和开放。开源不仅仅是廉价的营销marketing俩:开源的力量来自信任和无条件的捐赠,这驱动了许多公司都可以处理的更大的市场。