Hi
The accountant asks us for a feature in the currency settings (res.currency)
Be enabled by activating an option
Changed currency display
For example, put negative values in parentheses ()
-100=>(-100)
Or if the value was zero
Dash - Display
Has anyone had experience doing this?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
2
Cevaplar
2611
Görünümler
no experience. I don't know technically if currency is the appropriate object for this customization, but maybe you should check the Translation settings as well to find the right object for the customization.
var fields = require('web.basic_fields'); var _formatValue = require('web.AbstractField').prototype._formatValue; var ParenthesesField = fields.FieldMonetary.extend({ className: 'o_field_parentheses', _renderReadonly: function () {
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
0
Tem 25
|
449 | ||
|
0
Oca 21
|
2361 | ||
Can't select my currency
Çözüldü
|
|
4
Eyl 16
|
5206 | |
|
1
May 16
|
3713 | ||
|
0
May 25
|
791 |
If I inherit from the FieldMonetary
And override function
"_renderReadonly"
There is still a problem
Only fields that have "widget = monetary"
They will have this feature
var fields = require('web.basic_fields');
var _formatValue = require('web.AbstractField').prototype._formatValue;
var ParenthesesField = fields.FieldMonetary.extend({
className: 'o_field_parentheses',
_renderReadonly: function () {