-
-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] account_payment_return: Simplify code using _get_all_reconciled…
…_invoice_partials method Use span to fix translation issue. Post with soft=False to avoid reconcile raise in future operations. TT51518
- Loading branch information
1 parent
e77feb0
commit 1896634
Showing
3 changed files
with
33 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# Copyright 2011-2012 Avanzosc <http://www.avanzosc.com> | ||
# Copyright 2013 Tecnativa - Pedro M. Baeza | ||
# Copyright 2014 Markus Schneider <[email protected]> | ||
# Copyright 2016-2023 Tecnativa - Carlos Dauden | ||
# Copyright 2016-2024 Tecnativa - Carlos Dauden | ||
# Copyright 2017 Tecnativa - Luis M. Ontalba | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
|
@@ -211,7 +211,7 @@ def action_confirm(self): | |
move_line_vals = self._prepare_move_line(move, total_amount) | ||
# credit_move_line: credit on transfer or bank account | ||
AccountMoveLine.create(move_line_vals) | ||
move._post() | ||
move._post(soft=False) | ||
for to_reconcile_aml_dic in to_reconcile_aml_list: | ||
( | ||
to_reconcile_aml_dic["payment_aml"] + to_reconcile_aml_dic["return_aml"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters