OCA / purchase-workflow

Odoo Purchases, Workflow and Organization
GNU Affero General Public License v3.0
192 stars 752 forks source link

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

Open shenneveld opened 11 months ago

shenneveld commented 11 months ago

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

legalsylvain commented 11 months ago

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 commented 10 months ago

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 commented 10 months ago

Could you reproduce the bug on runboat ? Thanks !

AFCADMIN commented 10 months ago

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 commented 10 months ago

could you close the issue ?

shenneveld commented 10 months ago

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 commented 10 months ago

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