Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
7 Відповіді
28399 Переглядів

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
1871
1
черв. 23
4321
1
квіт. 22
9484
1
лист. 21
6155
2
бер. 24
11408