Skip to Content
Menu
This question has been flagged
2 Replies
1577 Views

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
Discard
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
Discard
Author Best Answer

thanks , it 's work 

Avatar
Discard
Related Posts Replies Views Activity
9
Jun 23
11132
2
Jan 22
2736
2
Dec 21
6275
0
Jun 21
1007
0
Feb 21
1542