콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
8521 화면

so actually i'm following a tutorial about odoo 10.0 but I'm using odoo 11.0 to follow it up.then i stuck on a probem that have to show currency on a numbers (price). i want to use IDR currency but it doesn't show up the currency. It only shows the numbers.I tried Monetary widget with 3 kinds of typing syntax but it just wont show what i want...

here's the code


<div class="col-xs-2 text-right"><t t-esc="vehicle.product_id.list_price" t-option="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
                                    <field name="website.currency_id" invisible="1"/> 
                                </div>
                                <div class="col-xs-1 text-right"><t t-esc="vehicle.option_total"  t-option="{'widget': 'monetary', 'display_currency': website.currency_id}"/></div>
                                <div class="col-xs-2 text-right"><t t-esc="vehicle.product_id.list_price+vehicle.option_total" widget="monetary" options="{'currency_field': 'currency_id'}"/></div>

아바타
취소
작성자

Actually i found some typo like t-option should be t-options.

but even after that it wont show up.

베스트 답변

Hello 

try like below code

<span t-field="o.amount" t-options="{'widget': 'monetary', 'display_currency': o.currency_id}"/>
아바타
취소
작성자

Great!, its working!. Thanks!

관련 게시물 답글 화면 활동
0
9월 17
8530
1
5월 17
4834
1
2월 24
33998
1
3월 15
9617
2
7월 24
16203