在Odoo总账代表上添加自定义字段

2024-10-03 04:37:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在Odoo总账报表中添加一个名为x_gstn的自定义字段,但它显示以下错误

    Odoo Server Error
    Traceback (most recent call last):

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_qweb/qweb.py", line 315, in _compiled_fn
    return compiled(self, append, values, options, log)
  File "<template>", line 1, in template_579_43993
  File "<template>", line 3, in body_call_content_43992
  File "<template>", line 8, in body_call_content_43991
  File "<template>", line 59, in foreach_43990
  File "<template>", line 77, in foreach_43989
KeyError: 'x_gstn'

Error to render compiling AST
KeyError: 'x_gstn'
Template: 579
Path: /templates/t/t/t[4]/div/table/tbody/t/tr[2]/td[4]/span
Node: <span t-esc="line['x_gstn']"/>

所以我不知道怎么纠正它

请与我分享你的想法。。。在


Tags: inodoomostirlinetemplateerrorcall