Skip to Content
Menu
This question has been flagged
2 Replies
2115 Zobrazenia

hi i am trying to remove currency from journal_id in journal entry to not show in print journal Entry in my qweb i do this:


<div class="col-xs-6" t-if="o.journal_id">
<h4 style="font-size:20px;">
<strong>Journal:</strong>

<span t-field="o.journal_id.code"/><span t-field="o.journal_id" style ="padding-left:20%;color:black;font-size:18px"/>
</h4>
</div>
when i print i get currency by default i want to hide it do you have any idea?
Avatar
Zrušiť
Best Answer

instead of `o.journal_id` use `o.journal.name`  so it will not call display_name (name_get)

so you code will be.
<span t-field="o.journal_id.code"/><span t-field="o.journal_id.name" style ="padding-left:20%;color:black;font-size:18px"/>

Note: you can also use <t t-esc="o.journal_id.name"/> instead of t-field

Avatar
Zrušiť
Autor Best Answer

thanks , it 's work 

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
9
jún 23
13298
2
jan 22
3974
2
dec 21
8028
0
jún 21
2046
0
feb 21
2698