IRC logs of #tryton for Friday, 2023-11-17

irc.libera.chat #tryton log beginning Fri Nov 17 12:10:01 AM CET 2023
-!- springwurm(~springwur@2a01:76c0:100:f500:3c19:428d:179d:faca) has joined #tryton06:03
-!- mrichez(~Maxime@mail.saluc.com) has joined #tryton07:24
-!- udono(~udo@227-139-067-156.ip-addr.inexio.net) has joined #tryton07:30
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton07:47
-!- ChanServ changed mode/#tryton -> +o cedk 07:47
-!- acaubet(~Thunderbi@194.224.31.235) has joined #tryton08:53
mrichezhi, on tryton 6.8, got this error when trying to do a sale return: The number of digits in the value "1.5800000000000000000" for field "Unite Price" in .... of "Sale Line" exceeds the limit of "8"10:09
mrichezknown bug ?10:09
pokolimrichez: using custom code or just using tryton modules? 10:28
pokolimrichez: this error is raised since https://foss.heptapod.net/tryton/tryton/-/commit/cfbc9e902c1d10:31
pokoliNormally the problem is that a round_price call is missing on some code10:32
mrichezpokoli: probably this issue, i'll try to apply patch on 6.810:39
mrichezpokoli: in my case, i'm just trying to return a sale (don't think my custom modules are involved in this case). I could retry also on a clean version.10:40
pokolimrichez: probably the problem is that you have wrong data in the database 10:45
mrichezpokoli: all the unit prices in the database have a lot of zero's : ex. 0.001090000000000010:54
mrichezhow to fix ?10:54
pokolimrichez: update xxxx set unit_price = round_price(unit_price, 4) for each table you have wrong values10:55
pokolimake sure to update the 4 with the number of digits your work with 10:55
mrichezpokoli: ok, thanks, but i should also apply patch otherwise the problem will be still there...10:56
mrichezpokoli: i think it's linked to this MR : https://foss.heptapod.net/tryton/tryton/-/merge_requests/92510:59
mrichezis the windows gtk client 6.8 updated with this MR ?11:00
pokolithe patch is server side, I do not think you need to do something on tryton client11:02
mrichezpokoli: MR 925 is on client11:03
pokoliyes but your issue is related to a server side validation and the commit I mentioned is on server side 11:06
pokoliWe have the same issue on a production database for one of our customers, doing the update fixed the problem11:06
mrichezpokoli: ok, thanks for explanations11:56
-!- nicoe(~nicoe@2a02:2788:54:1ff:d654:8bff:fefd:e27e) has joined #tryton12:31
-!- springwurm(~springwur@2a01:76c0:100:f500:d139:7204:1356:b542) has joined #tryton13:14
-!- htgoebel(~Thunderbi@p200300d5df35fe00c929f6a4195b1784.dip0.t-ipconnect.de) has joined #tryton16:46
-!- nicoe(~nicoe@2a02:578:852a:c00:d654:8bff:fefd:e27e) has joined #tryton19:58
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton20:59
-!- ChanServ changed mode/#tryton -> +o cedk 20:59
-!- udono(~udo@227-139-067-156.ip-addr.inexio.net) has joined #tryton21:45
-!- sharkcz(~sharkcz@85-71-161-19.rce.o2.cz) has joined #tryton22:28

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!