Message 77886

Author
acaubet
Date
2022-09-05.16:20:21
Message id
77886

Content

Could you describe "it generates me wrong lines and total values on the invoices" ??

Don't know why but It duplicates invoice lines many times, causing wrong totals, maybe there is some loop happening with one of my custom modules, I prefer not to focus on this as it's a collateral error of a "trick".

Maybe a solution to avoid the grouping error is to save the first invoice in case None is found, so for the next runs the invoices will be already grouped

Seams reasonable.

Altought your case only is reproducible when deleting I image the behaviour will be also wrong when processing two sales that generate a grouped invoice in a single call as the first invoice won't be saved, so the second sale will create another one.

I thought the same but I ignored as it's not a user can do and thought that if we find a solution this should also work for your scenario.

History
Date User Action Args
2022-09-05 16:20:21acaubetsetmessageid: <1662387621.3164432.N25WPFYD2UKWEYRX.issue11685@tryton.org>
2022-09-05 16:20:21acaubetsetrecipients: + ced, pokoli
2022-09-05 16:20:21acaubetlinkissue11685 messages
2022-09-05 16:20:21acaubetcreate

Showing 10 items. Show all history (warning: this could be VERY long)