小编Gok*_*T J的帖子

Many2many 字段使用相同的表和列,同时继承 _name 字段 Odoo13

当“hr.employee”或任何其他具有 Many2many 字段的模型继承到我在 odoo13 中的模型时,会抛出此错误。

Traceback (most recent call last):


File "/opt/odoo/odoo/modules/registry.py", line 59, in __new__
        return cls.registries[db_name]
      File "/opt/odoo/odoo/tools/func.py", line 69, in wrapper
        return func(self, *args, **kwargs)
      File "/opt/odoo/odoo/tools/lru.py", line 44, in __getitem__
        a = self.d[obj].me
    KeyError: 'shorepoint'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/opt/odoo/odoo/modules/registry.py", line 85, in new
        odoo.modules.load_modules(registry._db, force_demo, status, update_module)
      File "/opt/odoo/odoo/modules/loading.py", line 423, in load_modules
        registry.setup_models(cr)
      File "/opt/odoo/odoo/modules/registry.py", line 247, in setup_models
        model._setup_fields()
      File "/opt/odoo/odoo/models.py", line …
Run Code Online (Sandbox Code Playgroud)

orm erp python-3.x odoo odoo-13

5
推荐指数
1
解决办法
4203
查看次数

标签 统计

erp ×1

odoo ×1

odoo-13 ×1

orm ×1

python-3.x ×1