Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
1621 Представления

Hello,

I have a problem when invoice a sale order, the discount is not always correctly displayed. 
It's on Odoo.SH and sometimes he display the discount with a lot of digits behind the comma. 

Anyone has the same problem or has a solution to this?

Mostly after restarting the http worker it's all fine again.



Аватар
Отменить
Автор

Hi Salih Salih,

The Decimal accuracy is changed to 2 so that's not the problem or solution for this issue.

Лучший ответ

Hi,

You can update the decimal precision to 2 as below


discount = fields.Float(
        string='Discount (%)',
        digits='Discount',
        default=0.0,
        digits=(12,2)
    )

Regards

Аватар
Отменить
Лучший ответ

Hi Jeroen, 

Activate developer mode and Go to Settings -> Technical -> Decimal Accuracy -> select discount in change decimal accuracy from here by type number of digit you need to see in discount field  

Аватар
Отменить
Автор

Hi Salih Salih,
The Decimal accuracy is changed to 2 so that's not the problem or solution for this issue.

Related Posts Ответы Просмотры Активность
0
мая 25
866
0
авг. 25
425
5
апр. 25
6792
0
февр. 25
1664
3
окт. 24
3941