kubernetes Odoo 13中的CacheMiss异常

ohfgkhjo  于 2023-08-03  发布在  Kubernetes
关注(0)|答案(1)|浏览(303)

相关错误,但大小写不同

这两个问题都与计算领域有关。我下面的例子与计算域无关。

受影响版本

13

复制步骤

打开数据库选择器。
我们已经部署了Odoo。我们正在使用Buildkite到Kubernetes pod。

当前行为

1.打开数据库选择器

  1. Odoo正在无限加载。
    1.第一个月
    1.错误数:
2020-08-10 10:37:18,715 34 ERROR commece-2020-08-10-08-27-07 odoo.addons.base.models.ir_cron: Unexpected exception while processing cron job {'id': 4, 'ir_actions_server_id': 118, 'cron_name': 'Mail: Notify channel moderators', 'user_id': 1, 'active': True, 'interval_number': 1, 'interval_type': 'days', 'numbercall': -1, 'doall': False, 'nextcall': datetime.datetime(2020, 8, 10, 8, 21, 37), 'lastcall': datetime.datetime(2020, 8, 9, 8, 21, 51), 'priority': 1000, 'create_uid': 1, 'create_date': datetime.datetime(2020, 8, 6, 8, 21, 32, 42803), 'write_uid': 1, 'write_date': datetime.datetime(2020, 8, 6, 8, 21, 32, 42803)} 
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 753, in get
    value = self._data[field][record._ids[0]]
KeyError: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 978, in __get__
    value = env.cache.get(record, self)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 759, in get
    raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('res.users(1,).tz', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 753, in get
    value = self._data[field][record._ids[0]]
KeyError: 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 978, in __get__
    value = env.cache.get(record, self)
  File "/usr/lib/python3/dist-packages/odoo/api.py", line 759, in get
    raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('res.partner(2,).tz', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_cron.py", line 230, in _process_jobs
    registry[cls._name]._process_job(job_cr, job, lock_cr)
  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_cron.py", line 131, in _process_job
    now = fields.Datetime.context_timestamp(cron, datetime.now())
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1737, in context_timestamp
    tz_name = record._context.get('tz') or record.env.user.tz
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1002, in __get__
    self.compute_value(recs)
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1083, in compute_value
    records._compute_field_value(self)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3897, in _compute_field_value
    field.compute(self)
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 566, in _compute_related
    record[self.name] = self._process_related(value[self.related_field.name])
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 5579, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 985, in __get__
    recs._fetch_field(self)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 2930, in _fetch_field
    self._read(fnames)
  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3001, in _read
    cr.execute(query_str, params)
  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 163, in wrapper
    return f(self, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/odoo/sql_db.py", line 240, in execute
    res = self._obj.execute(query, params)
psycopg2.errors.UndefinedColumn: column res_partner.x_module_connexi_store_category does not exist
LINE 1: ...r"."x_module_connexi_id" as "x_module_connexi_id","res_partn...

字符串

尝试使用odoo -d <db-name> -i <module-name> -p 8070 --stop-after-init通过Odoo命令安装相同的模块,命令运行成功,但错误仍然存在。

预期行为

1.打开数据库选择器

  1. Odoo加载数据库选择器。
    1.选择数据库
    1.登入
    1.使用Odoo

视频/截图、链接(可选)

代码:

x_module_connexi_store_category = Char(
        string='Connexi Store Category',
        help=((
            'This field store the connexi store category.'
        ))
    )

数据库中:

x1c 0d1x的数据

oo7oh9g9

oo7oh9g91#

通过更新包含以下字段的模块,我为这些问题提供了不满意的解决方案:第一个月
并在后台运行名为“自动真空”的系统cron

相关问题