Skip to content

[19.0][FIX] sale_advance_payment: Add check for paid orders in portal#4136

Open
ellbristow wants to merge 1 commit intoOCA:19.0from
GlodoUK:19-fix-sale_advance_payment
Open

[19.0][FIX] sale_advance_payment: Add check for paid orders in portal#4136
ellbristow wants to merge 1 commit intoOCA:19.0from
GlodoUK:19-fix-sale_advance_payment

Conversation

@ellbristow
Copy link
Copy Markdown

Prevent 'Accept & Pay' button for fully paid orders.

Copy link
Copy Markdown

@alexey-pelykh alexey-pelykh left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! The _has_to_be_paid override is the right approach — checking amount_residual > 0 prevents the "Accept & Pay" button from appearing on already-paid orders. Clean and minimal.

LGTM.

Comment thread sale_advance_payment/models/sale.py
@rousseldenis
Copy link
Copy Markdown
Contributor

@ellbristow Could you squash your commits ? Thanks

Prevent 'Accept & Pay' button for fully paid orders.
@ellbristow ellbristow force-pushed the 19-fix-sale_advance_payment branch from c221be5 to 12bc592 Compare March 17, 2026 14:55
@ellbristow
Copy link
Copy Markdown
Author

@ellbristow Could you squash your commits ? Thanks

Sorry, done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants