[FIX] replacement and extend process from donation
This commit is contained in:
parent
868fcabf17
commit
f0f026ead9
|
|
@ -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 "دفع متعدد"
|
||||||
|
|
@ -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'])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue