This question has been flagged
3 Replies
3182 Views

I'm banging my head with rounding when paying with cash. I have a product with price of 1,82€ and I've created a product called rounding. Now when I add the rounding and select it's price to be -0,02€ it adds the 0,02 to the total and if I add the rounding as -1 each and set the price to be 0,02 it also adds it to the total. What I'm doing wrong here?

I know that there are two apps that takes care of this but at least the free one doesn't  suit my needs because when people are paying with credit (or debit) card the prices shouldn't be rounded. The other app I just cant afford.

Avatar
Discard

mark your product in model is_round similar to is_delivery. exclude it from totals till the last. then deduct it from whole total. this would make things easier during accounting too. to trigger calculation, use select field with on_change in sale_order and update field on return.

Best Answer

1.) If you are using 10.0 development branch, once there was this bug in dev in after this commit :

https://github.com/odoo/odoo/commit/5afb5ecd04cf49be6bedb655b187b19a65e1e02d

The counter commit to solving this issue has also been migrated to 10 branch.
So if your branch is in between you can fetch the latest commits, and your issue should get solved.

https://github.com/odoo/odoo/commit/33d20a224164cd83f09018addcf02496f22bced2#diff-b4910f2e838d1b125a771a87dfb8afda

Avatar
Discard
Author Best Answer

Sorry for not commenting directly to your post, I don't have enough karma for it. Anyways, thank you so much!

I had odoo-10.0.post20171024-1.noarch installed from nightly and after updating it to odoo-10.0.post20171107-1.noarch negative values works.

Avatar
Discard