[FIX] replacement and extend process from donation

This commit is contained in:
Nossibaelhadi 2025-11-19 00:45:09 +03:00
parent 868fcabf17
commit f0f026ead9
2 changed files with 7 additions and 2 deletions

View File

@ -7552,4 +7552,9 @@ msgstr "طرف دفع متعددة"
#. module: odex_takaful #. module: odex_takaful
#: model_terms:ir.ui.view,arch_db:odex_takaful.view_account_payment_register_form #: model_terms:ir.ui.view,arch_db:odex_takaful.view_account_payment_register_form
msgid "Association Journal" msgid "Association Journal"
msgstr "حساب الجمعية" msgstr "حساب الجمعية"
#. module: odex_takaful
#: model_terms:ir.ui.view,arch_db:odex_takaful.donation_extension_wizard_form
msgid "Sub Payments"
msgstr "دفع متعدد"

View File

@ -141,7 +141,7 @@ class DonationExtensionWizard(models.TransientModel):
payment_register = self.env['account.payment.register'].sudo().with_context(ctx).new( payment_register = self.env['account.payment.register'].sudo().with_context(ctx).new(
payment_register_vals) payment_register_vals)
payments = payment_register._create_payments() payments = payment_register.action_create_payments()
inv_sudo = inv.sudo() inv_sudo = inv.sudo()
inv_sudo.invalidate_cache(['amount_residual']) inv_sudo.invalidate_cache(['amount_residual'])