-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[IMP] account: Adding a method to check reconcilability on bank statements #32527
[IMP] account: Adding a method to check reconcilability on bank statements #32527
Conversation
783d7ed
to
7eea73c
Compare
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.
@nim-odoo
It looks more inheritable
We need to add custom validations here then it could be good if it is applied this patch then we can apply our custom behaviour.
What do you think?
@nim-odoo |
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.
What is the use case you are trying to solve?
By the way, counterpart_aml_dicts
, payment_aml_rec
and new_aml_dicts
could also be sent to the method. So that it receives all available information to extend the behavior.
Users want to add validations at the reconciliation of Journal Items of future or past dates than that of the Bank Statement Line date. By adding this method it will be possible to add those validations without having to override the whole method. Regards. |
account.bank.statement.line and make it inheritable.
7eea73c
to
ae80cc4
Compare
I don't think this is in any way necessary. You can do: def process_reconciliation(self, counterpart_aml_dicts=None, payment_aml_rec=None, new_aml_dicts=None):
for rec in payment_aml_rec or self.env['account.move.line']:
[do whatever check you want here]
super().process_reconciliation(counterpart_aml_dicts, payment_aml_rec, new_aml_dicts) No valuable information is computed before the piece of code you want to override, only a couple of variable assignments. Making this inheritable won't make an override cleaner or easier. |
Closing following the reasons given by Nicolas. |
[IMP] account: Adding a method to check reconcilability on
account.bank.statement.line and make it inheritable.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr