Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
3490 Lượt xem

My invoices and quotes currently do not display currency, only totals and subtotals have currency displayed.

How to put currency in unit prices please?
Thank you very much in advance!


More information:
     Odoo version: 15.0-20220814
     Odoo Edition: Community Edition

     Server: Microsoft Windows Server 2016 Datacenter
     Database: PostgreSQL 12.0


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Paulo Manuel,

You can try with adding monetary widget in the unit price field if the field in not a monetary type.


Please add the widget monetary in the xml side of your field and also you have to mentioned the currency field in options.

field name="price_unit" widget="monetary" options="{'currency_field': 'currency_id'}"

Hope it will help you.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

OK! funcionou apenas no formulário mas no documento impresso ainda não tem moeda. Como posso adicionar no modelo também?

Ảnh đại diện
Huỷ bỏ

Hi Paulo Manuel,
For reports, you need to add the widget monetary. Yes here also you need to add the related currency field.

Please add the t-options in the field of the report just like :

t-options='{"widget": "monetary", "display_currency": o.currency_id}'

For invoice you can add it in the price unit field of the report :

<span class="text-nowrap" t-field="line.price_unit" t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>

Please vote the answer if it helps you.
Thanks

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 2 19
3236
1
thg 11 18
3505
1
thg 11 24
1448
1
thg 3 21
3676
1
thg 11 20
3813