Odoo Help

Welcome!

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

1

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

By
Jaydeep Barot (jar)
on 3/1/16, 1:57 AM 1,870 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

5

Jusab Sida (jsi)

--Jusab Sida (jsi)--
Tiny ERP Pvt Ltd
http://www.odoo.com
874
| 2 1 5
Gandhinagar, India
--Jusab Sida (jsi)--


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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/1/16, 1:57 AM
Seen: 1870 times
Last updated: 4/28/16, 5:06 AM