Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
4111 Tampilan

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 ?

Avatar
Buang
Jawaban Terbai

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
  


Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Mei 19
5953
2
Mei 19
8601
0
Feb 19
2096
0
Jan 19
3302
1
Jan 19
7190