Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4050 Widoki

Hello there :)

I wrote some code to export orders from my online shop and import them into Odoo 14 as sales orders (plain csv file). This works pretty great, but I encounter a rounding problem.

My exported sales orders have no limit on the number of decimal places (prices). I found out, that Odoo rounds these decimal places to the number defined in "Settings > Decimal accuracy" and then the given value for "Product Price".

A simple solution would be to set this value (the number of digits for "Product Price") to something high like 8 or 16. I've tested the import of sales orders and with such a high No. of digits I do not have rounding problems. Unfortunately, though, Odoo shows those digits on the sales order in the column for price per UoM.

Another unfortunate thing is, that I have to export things like discounts as order lines with a negative value, since Odoo works so very differently to my shop system. So I absolutely rely on a fix for the rounding problem, hopefully with a higher number of decimal places. 

Anyone got a hint? 😟

PS: I've set the "Rounding Method" to "Round Globally" in "Settings > Accounting". "Line Subtotals Tax Display" is set to "Tax-Excluded".



Awatar
Odrzuć
Najlepsza odpowiedź

Edit the report using an inherited view that rounds the numbers on your invoices/etc.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
mar 22
2104
5
gru 23
22175
0
kwi 22
2398
2
kwi 21
7685
2
lip 20
7689