Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2985 Ansichten

I added field note to invoice report inside tax table. i want tax table to show up only if field note filled up. 

getting this error.  but field does exist and works wine if i don't use last xpath with position=replace.

QWebException: "'NoneType' object has no attribute 'note'" while evaluating

'not t.note'

<openerp>
<data>

<template id="report_invoice_document" inherit_id="account.report_invoice_document">


<xpath expr="//span[@t-field='t.amount']/../../../../thead/tr" position="inside">
<th class="text-left">Note</th>

</xpath>

<xpath expr="//span[@t-field='t.amount']" position="after">
<span t-field="t.note"/>
</xpath>
          <xpath expr="//span[@t-field='t.amount']/../../../.." position="replace">
<th t-if="not t.note"/>
</xpath>


</template>
</data>
</openerp>
Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Juni 25
1607
4
Mai 24
5784
1
Mai 23
3636
0
März 16
2929
1
Mai 15
4625