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

T1959 reconciliation is not behaving as it should #1996

Merged
merged 20 commits into from
Nov 18, 2024

Conversation

nlachat-compassion
Copy link
Contributor

@nlachat-compassion nlachat-compassion commented Nov 8, 2024

It seems that the simplest way to get the desired behaviour (strict matching on payment/invoice ref/label) is to override "account.reconcile.model"._apply_rules and filter the reconciliation results of the base implementation.

TODO before merging:

  • Implement toggle in reconciliation model view to enable "Strict reference matching". Done:
    image (in "Invoice matching rule" reconciliation model)
  • unit test _apply_rules with modified behaviour

The order of imports prevented the PartnerTest class from bein initialised properly (in test mode).
File "/home/zivi/Development/odoo-compassion/odoo/odoo14/addons-compassion-switzerland/compassion-modules/sponsorship_compassion/models/contract_group.py", line 70, in _get_partner_for_contract
    return super(ContractGroup, self)._get_partner_for_contract(contract, gift_wizard)
TypeError: _get_partner_for_contract() takes 2 positional arguments but 3 were given
@nlachat-compassion nlachat-compassion marked this pull request as draft November 8, 2024 11:05
@nlachat-compassion nlachat-compassion force-pushed the T1959-reconciliation-is-not-behaving-as-it-should branch from 0362281 to 6952a67 Compare November 11, 2024 08:57
@nlachat-compassion nlachat-compassion marked this pull request as ready for review November 12, 2024 13:10
@nlachat-compassion nlachat-compassion marked this pull request as draft November 14, 2024 15:40
Copy link

sonarcloud bot commented Nov 15, 2024

@ecino ecino marked this pull request as ready for review November 18, 2024 14:49
@ecino ecino merged commit 8aa230a into 14.0 Nov 18, 2024
2 checks passed
@ecino ecino deleted the T1959-reconciliation-is-not-behaving-as-it-should branch November 18, 2024 14:50
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.

2 participants