在Odoo总帐报表上添加自定义字段

时间:2017-09-21 07:24:51

标签: python python-2.7 openerp odoo-8 odoo-10

我尝试在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']"/>

所以我不知道如何纠正它

请与我分享您的想法......

0 个答案:

没有答案