Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
7 ตอบกลับ
28381 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ม.ค. 24
1865
1
มิ.ย. 23
4313
1
เม.ย. 22
9478
1
พ.ย. 21
6151
How to know the model in QWEB? แก้ไขแล้ว
2
มี.ค. 24
11401