Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4475 Widoki

With odoo 8 in Settings -> Technical -> Database Structure -> Decimal Accuracy there is "Account"by default , when i modify the digits to 3 the subtotal rounding changed . But in odoo 9 there is not "Account" by default , and even when i tried to create it  and added "price_subtotal = fields.Monetary(compute='_compute_amount', string='Subtotal', digits=dp.get_precision('Account'))"  there is no change in the subtotal display.Any help please ?

Awatar
Odrzuć
Najlepsza odpowiedź

Hello Odooers,

I think if you are dealing with Monetary fields, then you dont need any code change, only need to set proper

"Decimal Places" in currency settings.

Steps to change Subtotal fields (Monetary) decimal accuracy from 2 digit to 3 digits:

1. Activate Multi Currency from General Settings (Settings > General Settings > Accounting ('Invoicing' If Community)), Now activate Multi-Currencies from Currencies section.

2. Now go to Accounting ('Invoicing' If Community) > Configuration > Accounting > Currencies.

3. In currency form change value 0.010000 to 0.001000 in Rounding Factor field and save record.

I hope this will helpful.

--
Regards
Haresh Kansara
Odoo Application Engineer
  


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 19
6300
2
maj 19
8973
0
lut 19
2322
0
sty 19
3614
1
sty 19
7580