-
-
Notifications
You must be signed in to change notification settings - Fork 403
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][FIX] account_reconcile_oca: Avoiding the singleton error related to _get_reconcile_line() #807
[16.0][FIX] account_reconcile_oca: Avoiding the singleton error related to _get_reconcile_line() #807
Conversation
…_get_reconcile_line() Example use case: File "/opt/odoo/auto/addons/account_reconcile_oca/models/account_bank_statement_line.py", line 541, in _compute_reconcile_data_info record.reconcile_data_info = record._default_reconcile_data( File "/opt/odoo/auto/addons/account_reconcile_oca/models/account_bank_statement_line.py", line 698, in _default_reconcile_data reconcile_auxiliary_id, lines = self._get_reconcile_line( File "/opt/odoo/auto/addons/account_reconcile_oca/models/account_bank_statement_line.py", line 1164, in _get_reconcile_line new_vals = super()._get_reconcile_line( File "/opt/odoo/auto/addons/account_reconcile_oca/models/account_reconcile_abstract.py", line 49, in _get_reconcile_line original_amount = amount = net_amount = line.debit - line.credit File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1154, in __get__ record.ensure_one() File "/opt/odoo/custom/src/odoo/odoo/models.py", line 5204, in ensure_one raise ValueError("Expected singleton: %s" % self) ValueError: Expected singleton: account.move.line(208, 211, 212) TT55221
Hi @etobella, |
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.
👍
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.
/ocabot merge patch
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 09fa72a. Thanks a lot for contributing to OCA. ❤️ |
Avoiding the singleton error related to
_get_reconcile_line()
Related to #694
Please @pedrobaeza and @etobella can you review it?
@Tecnativa TT55221