[FIX] odex_takaful
This commit is contained in:
parent
e129ab9fa7
commit
f7854eccc7
|
|
@ -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':
|
if self.state == 'draft':
|
||||||
# Send SMS Notification
|
# Send SMS Notification
|
||||||
|
|
|
||||||
|
|
@ -121,17 +121,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- Total row (same as المجموع but using amount_total if needed in future) -->
|
<!-- 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>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
@ -159,6 +148,16 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</t>
|
</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 t-else="">
|
<t t-else="">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,7 @@ class AccountRegisterPayment(models.TransientModel):
|
||||||
return super(AccountRegisterPayment, self)._get_batch_available_partner_banks(batch_result, journal)
|
return super(AccountRegisterPayment, self)._get_batch_available_partner_banks(batch_result, journal)
|
||||||
|
|
||||||
def action_create_payments(self):
|
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.env.context.get('dont_redirect_to_payments') and self.env.context.get('wiz_id'):
|
||||||
if self.amount < self.env.context.get('default_amount'):
|
if self.amount < self.env.context.get('default_amount'):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue