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

See image for better idea.

<span t-field="o.amount_total"/> 

Image is not display here so I have putted shareable link.


see link: https://drive.google.com/file/d/0B763E4hoUk59QjI0S0pqMG5CakE/view?usp=sharing

아바타
취소
베스트 답변

Hello Jaydeep bhai...

I have done same thing in sale order report with monetary field.

<span t-field="doc.amount_total" t-field-options="{&quot;widget&quot;: &quot;False&quot;}"/>


Hope this will help you...

아바타
취소
베스트 답변

Try this,

<span t-esc="float(o.amount_total)"/>

아바타
취소
작성자

Hello CatsandDogs, Is it possible through ?

작성자

<span t-field="o.amount_total"/>

I think, is not possible way to achieve that

베스트 답변

Try, this one

In .py

_columns = {
    'amount' : fields.float("amount", digits_compute=dp.get_precision('Account'))
    'company_id': fields.many2one('res.company', 'Company', required=True),
    'company_currency_id': fields.related('company_id','currency_id',type="many2one",
         relation="res.currency",string="Company Currency",readonly=True,store=True),
}

In .xml,


<field name="company_currency_id" invisible="1"/>
<field name="amount" widget="monetary" options="{'currency_field': 'company_currency_id'}"/>





아바타
취소
작성자

thanks

관련 게시물 답글 화면 활동
1
1월 24
1887
1
6월 23
4381
1
4월 22
9554
1
11월 21
6212
2
3월 24
11462