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

[12.0] account_global_discount: error on multi-invoice payment validation #788

Closed
pedrocasi opened this issue Sep 25, 2020 · 1 comment
Closed
Milestone

Comments

@pedrocasi
Copy link
Contributor

module: account_global_discount
version: 12.0

Steps to reproduce

  • install account_global_discount
  • select 2 or more unpaid purchase invoices
  • click on Action/Register Payment
  • hit Validate

Current Behavior

Error:

File "/opt/odoo/auto/addons/account_global_discount/models/account_invoice.py", line 129, in _compute_amount
if not self.invoice_global_discount_ids:
File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1030, in get
record.ensure_one()
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 4751, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: account.invoice(34839, 34838)

pedrobaeza added a commit that referenced this issue Sep 25, 2020
For reducing diff, we rename the method and call it record per record.

Fixes #788
@pedrobaeza
Copy link
Member

Fixed in 4ebbcaf

@pedrobaeza pedrobaeza added this to the 12.0 milestone Sep 25, 2020
ernestotejeda pushed a commit to Tecnativa/account-invoicing that referenced this issue Nov 8, 2020
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
ernestotejeda pushed a commit to Tecnativa/account-invoicing that referenced this issue Nov 17, 2020
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
sergiocorato pushed a commit to efatto/account-invoicing that referenced this issue Dec 18, 2020
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
omar7r pushed a commit to Comunitea/account-invoicing that referenced this issue Aug 23, 2021
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
kirca pushed a commit to archeti-org/account-invoicing that referenced this issue Feb 17, 2022
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
jesusVMayor pushed a commit to Comunitea/account-invoicing that referenced this issue Feb 17, 2022
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
jesusVMayor pushed a commit to Comunitea/account-invoicing that referenced this issue Feb 17, 2022
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
kirca pushed a commit to archeti-org/account-invoicing that referenced this issue Oct 21, 2022
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
ferran-S73 pushed a commit to Studio73/account-invoicing that referenced this issue Jan 4, 2023
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
alexeirivera87 pushed a commit to archeti-org/account-invoicing that referenced this issue Jan 20, 2023
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
ferran-S73 pushed a commit to Studio73/account-invoicing that referenced this issue Jun 28, 2023
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
ferran-S73 pushed a commit to Studio73/account-invoicing that referenced this issue Aug 17, 2023
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
Ricardoalso pushed a commit to camptocamp/account-invoicing that referenced this issue Sep 8, 2023
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
hildickethan-S73 pushed a commit to Studio73/account-invoicing that referenced this issue Nov 10, 2023
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
hildickethan-S73 pushed a commit to Studio73/account-invoicing that referenced this issue Nov 15, 2023
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
miguel-S73 pushed a commit to Studio73/account-invoicing that referenced this issue Mar 15, 2024
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
miguel-S73 pushed a commit to Studio73/account-invoicing that referenced this issue Mar 15, 2024
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
alan196 pushed a commit to Jarsa/account-invoicing that referenced this issue Apr 22, 2024
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
pedrobaeza added a commit to Tecnativa/account-invoicing that referenced this issue May 17, 2024
For reducing diff, we rename the method and call it record per record.

Fixes OCA#788
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

2 participants