Odoo Help

1

[SOLVED]How to remove currency symbol from Monetary field qweb report ?

By
Jaydeep Barot (jar)
on 3/1/16, 1:57 AM 3,435 views

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

6
Jusab Sida (jsi)
On 3/1/16, 7:40 AM

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...

2
CatsandDogs
On 3/1/16, 4:56 AM

Try this,

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

Hello CatsandDogs, Is it possible through ?

Jaydeep Barot (jar)
on 3/1/16, 5:04 AM

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

Jaydeep Barot (jar)
on 3/1/16, 5:05 AM

I think, is not possible way to achieve that

CatsandDogs
on 3/1/16, 5:18 AM
0
Narashimman
On 3/1/16, 6:47 AM

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

Jaydeep Barot (jar)
on 3/1/16, 6:56 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/1/16, 1:57 AM
Seen: 3435 times
Last updated: 7/12/17, 2:40 PM