-
-
Notifications
You must be signed in to change notification settings - Fork 368
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 #537
base: 16.0
Are you sure you want to change the base?
[16.0][MIG] account_payment_mode_auto_reconcile: Migrate to version 16.0 #537
Conversation
sonhd91
commented
Mar 10, 2023
- account.invoice removed use account.move instead. Since payment_mode_id computed by filtered out lines with existed credits/debit, so we use the same that logic in line 57
- amount_residual now include the tax_price, so we recal amount_residual
@sonhd91 can you please rebase to have a runboat to test? |
00341af
to
f440e10
Compare
@sonhd91 Look to work well, thx 👍 However, the view on invoices looks broken with the alert message message not displayed properly, can you please fix? 🙏 |
f440e10
to
e97a4aa
Compare
I updated it, please check again |
@sonhd91 Could you rebase ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code and functional review
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
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 <akim.juillerat@camptocamp.com> * Update account_payment_mode_auto_reconcile/tests/test_partner_auto_reconcile.py Co-Authored-By: Akim Juillerat <akim.juillerat@camptocamp.com>
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.
e97a4aa
to
17386a6
Compare
@rousseldenis |
This PR has the |