1
請求書レポートをフィールドノートで延長する必要があります。フィールドが存在しないというエラーが表示されます。私は立ち往生して、そのフィールドに到達する方法を知らない。 partner_id.note
でも試してみましたが、またエラーが出ました。請求書レポートの範囲フィールド
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_invoice_document" inherit_id="account.report_invoice_document">
<xpath expr="//div[@class='page']/*[last()]" position="after">
<div class="row">
<div class="col-xs-6">
<span t-esc="o.note"/><br/>
<div class="left_sign_block">
<span>Note</span>
</div>
</div>
</div>
</xpath>
</template>
</data>
</openerp>
class AccountInvoiceTax(models.Model):
_inherit = 'account.invoice.tax'
note = fields.Text(related='tax_id.note', string='Note')
QWebException:あなたはモデル
account.invoice.tax
ないaccount.invoice
を高めてい 'o.note'
のようなものですか? –
請求書に記載されている税金の数によって異なります。ドイツでは、19%のVATと7%のVATが請求された場合、2つの課税ラインが存在する可能性があります。したがって、forループが必要な場合、または確実である場合は、 '' – CZoellner
がQWebException : "'NoneType'オブジェクトに属性 '__getitem__'がありません。 'tax_line_ids [0] .note' –