Xml 报告由于Xpath而缺少翻译

Xml 报告由于Xpath而缺少翻译,xml,odoo-8,odoo,Xml,Odoo 8,Odoo,原始报告就是这个,我想用我的新报告覆盖它 <openerp> <data> <template id="report_invoice_qweb"> <t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" /> <div class="page"> <di

原始报告就是这个,我想用我的新报告覆盖它

<openerp>
    <data>
        <template id="report_invoice_qweb">
            <t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" />
            <div class="page">
                <div>
我试着用

 <data>
          <template id="report_invoice_inherit" inherit_id="account.report_invoice_qweb">

        <xpath expr="div[@class='page']" position="replace">
但问题是我的新报告没有翻译。因为它不见了

<t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" />
我怎样才能解决这个问题

该行仍在report\u invoice\u qweb中,您尚未修改或删除该行,因此我想这不是问题所在。我的意思是,在您修改后,新的帐户报告将如下所示:

<openerp>
    <data>
        <template id="report_invoice_qweb">
            <t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})" />
            <div class="page">  <!-- (YOUR CUSTOM div class="page") --> 
               ... your code ...
            </div>
        </template>
    </data>
</openerp>
我认为问题在于,您尚未将模块的翻译输出到您的语言,并且模块的新内容尚未翻译

因此,解决方案将进入“设置>翻译>导入/导出>导出翻译”,选择您的模块和语言,编辑生成的.po文件或.csv以翻译您添加的术语