odoo.tools.convert.ParseError:“无法更新丢失的记录”

时间:2019-02-08 08:30:52

标签: odoo

我正在尝试修改odoo 12报表,我将修改模板,然后添加一个Inherited_id,但是此Inherited_id不起作用。这是出现的错误:

  File "/home/omar/odoo/odoo12/odoo/tools/convert.py", line 754, in parse
    self.parse(rec, mode)
  File "/home/omar/odoo/odoo12/odoo/tools/convert.py", line 763, in parse
    exc_info[2]
  File "/home/omar/odoo/odoo12/odoo/tools/pycompat.py", line 86, in reraise
    raise value.with_traceback(tb)
  File "/home/omar/odoo/odoo12/odoo/tools/convert.py", line 757, in parse
    self._tags[rec.tag](rec, de, mode=mode)
  File "/home/omar/odoo/odoo12/odoo/tools/convert.py", line 735, in _tag_template
    return self._tag_record(record, data_node)
  File "/home/omar/odoo/odoo12/odoo/tools/convert.py", line 612, in _tag_record
    raise Exception("Cannot update missing record %r" % xid)
odoo.tools.convert.ParseError: "Cannot update missing record 'account.report_invoice_document_customized'" while parsing None:43, near
<data inherit_id="account.report_invoice_document">
        </data>

1 个答案:

答案 0 :(得分:0)

您可以尝试使用report_invoice_document_customized代替account.report_invoice_document_customized

例如,当您在调试模式下通过“编辑视图:表单”检查Odoo时,Odoo会自动将点分隔的模块名称添加到视图的外部ID。

使用带有此前缀的外部ID会导致您发现错误。