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.

0

Simply adding currency symbol to form?

By
mike
on 6/3/13, 3:01 PM 2,102 views

I want to display a dollar sign next to a computed field and do not wish to add another field to my object model in order to utilize the monetary widget. Is there some simple way to just add $ into my form after the label and before the value?

1
kalmenchia
On 6/4/13, 4:11 AM

Hi ,

you can either

  1. customize the computed field , which i believe you mean if the function field (fields.function) and include your "Sign($)" in the field or

or

  1. to add another function field which get the related "$" currency sign , (this is additional fields but without adding it to the physical table)

Well adding another field is violating my object model which I am trying to avoid. Your 1st suggestion seems to be the only way to accomplish my goal. I can convert the float value to a string and then append the currency symbol within the field's function. Which of course is bad design practice but not as bad as being forced to change my object models with extraneous fields just to use a javascript widget....

mike
on 6/4/13, 10:15 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

0 follower(s)

Stats

Asked: 6/3/13, 3:01 PM
Seen: 2102 times
Last updated: 3/16/15, 8:10 AM