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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
Hi ,
you can either
- customize the computed field , which i believe you mean if the function field (fields.function) and include your "Sign($)" in the field or
or
- 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....
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
1
févr. 24
|
33474 | ||
|
1
avr. 21
|
8595 | ||
|
2
févr. 24
|
8169 | ||
|
0
sept. 17
|
8185 | ||
|
1
août 17
|
13473 |