Odoo Help

0

Simply adding currency symbol to form?

By
mike
on 6/3/13, 3:01 PM 2,641 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

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

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

0 follower(s)

Stats

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