Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_supplierinfo_discount creates about 40 decimals, rendering invoices unreadable. #1965

Open
shenneveld opened this issue Aug 2, 2023 · 7 comments
Labels

Comments

@shenneveld
Copy link

default_supplierinfo_discount has about 40 decimals, rendering invoices unreadable.

Module

Purchase_discount

Describe the bug

The field supplier discount on the contact form creates loads of decimals, forcing the discount on purchase and sale orders to have the same amount of decimals and therefore turning invoices unreadable.

To Reproduce

16.0
Every contact form, new and old, has the same problem

Expected behavior

The field only returning 2 decimals, or the decimal precision being manageable through the decimal precision technical setting

image

@shenneveld shenneveld added the bug label Aug 2, 2023
@legalsylvain
Copy link
Contributor

Hi @shenneveld. That is an invalid issue IMO.
this module uses the configuration of the database, regarding digits. I guess you configured your "Discount" precision with 40 decimals.
See : on runboat, the bug is not reproducible.

image

Kind regards.

@AFCADMIN
Copy link

AFCADMIN commented Aug 28, 2023

We also have exactly the same problem at the moment. We will have a look at your suggestion about the discount precision.
Just started this week, before it was fine.

Edit: we just looked at the discount and it's set to 2 digits.

@legalsylvain
Copy link
Contributor

Could you reproduce the bug on runboat ? Thanks !

@AFCADMIN
Copy link

Strangely enough, the issue has been resolved. There has been no changes on our side, maybe there was an update on the Odoo.sh platform that we are unaware off.

@legalsylvain
Copy link
Contributor

could you close the issue ?

@shenneveld
Copy link
Author

Strangely enough, the issue has been resolved. There has been no changes on our side, maybe there was an update on the Odoo.sh platform that we are unaware off.

This happened for me too. Comes up and goes away without significant trigger

@AFCADMIN
Copy link

I am not the one who started it, and sorry for my newbie question, but I guess Shenneveld should close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants