Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] POS order return impossible (pos_orderline_absolute_discount) #1477

Open
wants to merge 2 commits into
base: 14.0
Choose a base branch
from

Conversation

vincent-mundo
Copy link

Hello, here is a pull request to validate an article return with or without "absolute_discount".

At the beginning the return of article was possible only when there was an absolute_discount (discount by number, not percentage).

Now there is the return no matter what.
I tested it in all possibilities, from ticket to invoice.

Thanks

@vincent-mundo vincent-mundo changed the title [FIX] Line deletion impossible in module pos_orderline_absolute_discount [FIX] POS order return impossible (pos_orderline_absolute_discount) Sep 14, 2022
@@ -62,12 +62,13 @@ def _compute_amount_line_all(self):
product=line.product_id,
partner=line.order_id.partner_id,
)
line.update(
res.update(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be line I think

@flotho
Copy link
Contributor

flotho commented Nov 22, 2022

thanks @yelizariev , we're going to have a look to this with @gaelTorrecillas

@flotho
Copy link
Contributor

flotho commented Feb 15, 2023

I think we can close this one because it was not totally correct.
The #1485 is really better @yelizariev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants