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

When reconciling using the Widget, the Reconciliation Model is not referring to the Partner in the Widget #19

Open
singwangho opened this issue Aug 10, 2020 · 0 comments

Comments

@singwangho
Copy link

module: om_account_accountant
Odoo version: 13.0

Description
During reconciliation, when users select Partner for the statement line, the reconciliation models with "Partner is Set" rules should refresh which would auto-fill the statement line. This is currently not the case. When a partner is selected, Odoo should check the reconciliation model again to see if there's any rules related to the partner.

I think this bug has recently been addressed in Odoo_master under issue "[IMP] account: misc improvements of reconciliation models #55031" with this commit:

[FIX] account: partner mapping and model order
Because we used the same variable to compute the partner, it was
overriden once we went through a model with a partner mapping, and kept
for models with lesser priority.
Also remove the key param to sort the recocniliation models. We want the
models to be sorted according like in the list view, and that is exactly
what the .sorted() function does without params. (no need to worry about
changing it if we change the _order)

Steps to Reproduce
Let's say I have PartnerA which has a statement line "Gas" where I want to set a reconciliation model for.

  1. Create a Reconcile Rule which contains "Gas" and with Partner Set to PartnerA
  2. In the reconciliation screen, if the statement line does not have Payee already assigned; the reconciliation rule is not triggered (which is correct).
  3. However, when the user manually select PartnerA for the bank statement line, one would expect the reconciliation model to be triggered which would auto-fill the details. This is currently not the case.
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

No branches or pull requests

1 participant