diff --git a/odex25_takaful/odex_takaful/data/scheduled_actions.xml b/odex25_takaful/odex_takaful/data/scheduled_actions.xml
index 55b503f19..15f8727c7 100644
--- a/odex25_takaful/odex_takaful/data/scheduled_actions.xml
+++ b/odex25_takaful/odex_takaful/data/scheduled_actions.xml
@@ -81,6 +81,20 @@
+
+ Family Member Restriction
+
+ code
+ model._cron_family_member_restriction()
+ 1
+ days
+ -1
+ False
+
+
+
+
+
-
-
- Family Member Restriction
-
- code
- model._cron_family_member_restriction()
- 1
- days
- -1
- False
+
+
+
\ No newline at end of file
diff --git a/odex25_takaful/odex_takaful/i18n/ar_001.po b/odex25_takaful/odex_takaful/i18n/ar_001.po
index 085677abc..1a803b36a 100644
--- a/odex25_takaful/odex_takaful/i18n/ar_001.po
+++ b/odex25_takaful/odex_takaful/i18n/ar_001.po
@@ -2206,6 +2206,11 @@ msgstr "المدة المستهدفة"
msgid "Editable"
msgstr "قابل للتعديل"
+#. module: odex_takaful
+#: model:ir.ui.menu,name:odex_takaful.manager_donations_details_lines_app_menu
+msgid "Editable Sponsorship Lines"
+msgstr "تعديل تفاصيل بنود التبرعات"
+
#. module: odex_takaful
#: model_terms:ir.ui.view,arch_db:odex_takaful.family_member_search_inherit
msgid "Educated"
@@ -6759,6 +6764,11 @@ msgstr "عدد الرسائل الجديدة"
msgid "Unregistered Sponsor Name"
msgstr "كافل غير مسجل بالنظام"
+#. module: odex_takaful
+#: model:res.groups,name:odex_takaful.group_update_sensible_fields
+msgid "Updating Months Count & Start Date"
+msgstr "تعديل عدد الأشهر وتاريخ البدء في بنود التبرعات"
+
#. module: odex_takaful
#: model:ir.model.fields,field_description:odex_takaful.field_account_payment_register__show_last_digits
msgid "Use 4 Digits"
diff --git a/odex25_takaful/odex_takaful/models/account_payment.py b/odex25_takaful/odex_takaful/models/account_payment.py
index 11d7a1a89..8f3988854 100644
--- a/odex25_takaful/odex_takaful/models/account_payment.py
+++ b/odex25_takaful/odex_takaful/models/account_payment.py
@@ -32,7 +32,7 @@ class AccountPayment(models.Model):
rec.payment_method_name = rec.payment_method_line_id.name if rec.payment_method_line_id else False
-class AccountPayment(models.Model):
+class AccountJournal(models.Model):
_inherit = 'account.journal'
branch_ids = fields.Many2many('branch.settings', string="Branchs")
\ No newline at end of file
diff --git a/odex25_takaful/odex_takaful/models/donation_details_lines.py b/odex25_takaful/odex_takaful/models/donation_details_lines.py
index 5557da1eb..82dd87110 100644
--- a/odex25_takaful/odex_takaful/models/donation_details_lines.py
+++ b/odex25_takaful/odex_takaful/models/donation_details_lines.py
@@ -703,12 +703,10 @@ class DonationsDetailsLines(models.Model):
@api.onchange('payment_month_count')
def _onchange_payment_month_count(self):
- for rec in self:
+ for rec in self.filtered(lambda r: r.state == 'draft'):
rec.benefit_id = False
rec.benefit_ids = [(5, 0, 0)]
-
-
@api.model
def default_get(self, fields):
res = super(DonationsDetailsLines, self).default_get(fields)