[FIX] odex_takaful

This commit is contained in:
Samir Ladoui 2026-01-06 04:57:29 +01:00
parent e129ab9fa7
commit f7854eccc7
3 changed files with 12 additions and 13 deletions

View File

@ -1415,7 +1415,7 @@ class TakafulSponsorship(models.Model):
(self.donations_details_lines + self.donations_details_lines_mechanism_ids).compute_sponsorships_lines()
(self.donations_details_lines + self.donations_details_lines_mechanism_ids).sudo().compute_sponsorships_lines()
if self.state == 'draft':
# Send SMS Notification

View File

@ -121,17 +121,6 @@
</tr>
<!-- Total row (same as المجموع but using amount_total if needed in future) -->
<tr>
<td style="text-align: right; padding: 8px; font-size: 1.5rem; color: #6B6B6A; font-weight: bold;"
colspan="2">
<strong>
<span style="margin-left: 10px;">الإجمالي:</span>
</strong>
</td>
<td style="text-align: center; padding: 8px; font-size: 1.5rem; color: #387F75; font-weight: bold;">
<span t-esc="doc.total_sponsorship_amount"/>
</td>
</tr>
</tbody>
</table>
@ -159,6 +148,16 @@
</td>
</tr>
</t>
<tr>
<td style="text-align: right; padding: 8px; font-size: 1.5rem; color: #6B6B6A; font-weight: bold;">
<strong>
<span style="margin-left: 10px;">الإجمالي:</span>
</strong>
</td>
<td style="text-align: center; padding: 8px; font-size: 1.5rem; color: #387F75; font-weight: bold;">
<span t-esc="doc.total_sponsorship_amount"/>
</td>
</tr>
</t>
<t t-else="">
<tr>

View File

@ -259,7 +259,7 @@ class AccountRegisterPayment(models.TransientModel):
return super(AccountRegisterPayment, self)._get_batch_available_partner_banks(batch_result, journal)
def action_create_payments(self):
res = super(AccountRegisterPayment, self).action_create_payments()
res = super(AccountRegisterPayment, self.with_context(skip_account_move_synchronization=True)).action_create_payments()
if self.env.context.get('dont_redirect_to_payments') and self.env.context.get('wiz_id'):
if self.amount < self.env.context.get('default_amount'):