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

[16.0][MIG] account_payment_mode_auto_reconcile: Migrate to version 16.0 #735

Open
wants to merge 8 commits into
base: 16.0
Choose a base branch
from

Conversation

thienvh332
Copy link

Takeover from #537

grindtildeath and others added 7 commits October 23, 2024 09:51
Override write instead of using onchange

Add missing utf-8 comment

Fix warning message

Restrict to customer invoices

Add readme and load tests

Improvements after reviews

Improve doc

Unreconcile only automatically reconciled payments
* Add auto reconcile only same journal

Add an option to auto reconcile only credits that are on the same
journal than the invoice.
This make sure that unrelated payment will not be used automatically.

* Update account_payment_mode_auto_reconcile/models/account_invoice.py

Co-Authored-By: Akim Juillerat <[email protected]>

* Update account_payment_mode_auto_reconcile/tests/test_partner_auto_reconcile.py

Co-Authored-By: Akim Juillerat <[email protected]>
This small change is needed since action_invoice_open filters
invoices that can be open from other invoices that cannot.

Therefore using invoice_validate here allows for better
customizations by ensuring that the invoices to be handled are
really open (i.e. have a move generated).
As using reverse is not reliable to ensure oldest credits
will be reconciled first, use a function to sort the dicts
according to their id and allows inheritance.
@thienvh332 thienvh332 force-pushed the 16.0-mig-account_payment_mode_auto_reconcile branch from c4da2be to fc4e635 Compare October 23, 2024 03:06
@thienvh332 thienvh332 marked this pull request as ready for review October 23, 2024 03:12
@thienvh332 thienvh332 force-pushed the 16.0-mig-account_payment_mode_auto_reconcile branch from fc4e635 to b705178 Compare October 23, 2024 04:07
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.

5 participants