Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3505 Представления

Hi, I would like to know how could I use tax's 'description' instead of tax's 'name' in below extract of code (invoice template).

Reason is that Spanish accounting module swaps (for some odd reason) name and description for taxes .

So Instead of:  

t-field="t.name"  

I would like to find how to do:

t-field="t.description"

But description is not a field of tax_line.

I guess I have to search t.name into another model to get tax description. Any help on how to do it is really welcomed.

<tr t-foreach="o.tax_line" t-as="t">
<td>
<span t-field="t.name"/>
</td>
<td class="text-right">
<span t-field="t.base" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
</td>
<td class="text-right">
<span t-field="t.amount" t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/>
</td>
</tr>



Аватар
Отменить
Related Posts Ответы Просмотры Активность
0
янв. 24
1656
1
дек. 23
1848
2
дек. 24
7576
2
окт. 19
8883
2
сент. 15
8025