تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
7 الردود
28272 أدوات العرض

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
يناير 24
1784
1
يونيو 23
4201
1
أبريل 22
9405
1
نوفمبر 21
6054
2
مارس 24
11344