From e632ef2666d78cd708adc95458f93352926eb85e Mon Sep 17 00:00:00 2001 From: BernatPForgeFlow Date: Fri, 12 Jul 2024 11:57:24 +0200 Subject: [PATCH] [FIX] account_banking_ach_discount: Expected singleton --- account_banking_ach_discount/models/account_move.py | 2 +- .../static/description/index.html | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/account_banking_ach_discount/models/account_move.py b/account_banking_ach_discount/models/account_move.py index c13504c2..08662374 100644 --- a/account_banking_ach_discount/models/account_move.py +++ b/account_banking_ach_discount/models/account_move.py @@ -39,7 +39,7 @@ def _compute_payments_widget_reconciled_info(self): # Discount is applied on the last payment (i.e. fully reconciled). if ( mvl.payment_id - and mvl.move_id.id == self.id + and mvl.move_id.id == move.id and item["account_payment_id"] == mvl.payment_id.id ): if mvl.full_reconcile_id and not flag: diff --git a/account_banking_ach_discount/static/description/index.html b/account_banking_ach_discount/static/description/index.html index dacf4b39..adb657f5 100644 --- a/account_banking_ach_discount/static/description/index.html +++ b/account_banking_ach_discount/static/description/index.html @@ -8,11 +8,10 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ +:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. -Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -275,7 +274,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: gray; } /* line numbers */ +pre.code .ln { color: grey; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -301,7 +300,7 @@ span.pre { white-space: pre } -span.problematic, pre.problematic { +span.problematic { color: red } span.section-subtitle { @@ -476,9 +475,7 @@

Contributors

Maintainers

This module is maintained by the OCA.

- -Odoo Community Association - +Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.