diff --git a/odex25_takaful/odex_takaful/__manifest__.py b/odex25_takaful/odex_takaful/__manifest__.py
index b0d34a197..2fab481f3 100644
--- a/odex25_takaful/odex_takaful/__manifest__.py
+++ b/odex25_takaful/odex_takaful/__manifest__.py
@@ -23,6 +23,7 @@
'data/sequence_data.xml',
'data/scheduled_actions.xml',
+ 'data/ir_actions_server_data.xml',
'views/reports_paperformats.xml',
'views/reports_templates.xml',
'views/reports_actions.xml',
diff --git a/odex25_takaful/odex_takaful/data/ir_actions_server_data.xml b/odex25_takaful/odex_takaful/data/ir_actions_server_data.xml
new file mode 100644
index 000000000..4395c74fa
--- /dev/null
+++ b/odex25_takaful/odex_takaful/data/ir_actions_server_data.xml
@@ -0,0 +1,20 @@
+
+
+
+
+ Print/Send Orphan Report
+
+
+ code
+ action = records.server_action_print_and_send_orphan_reports()
+
+
+
+
+
\ No newline at end of file
diff --git a/odex25_takaful/odex_takaful/models/family_member.py b/odex25_takaful/odex_takaful/models/family_member.py
index 46a74537d..16f3e0177 100644
--- a/odex25_takaful/odex_takaful/models/family_member.py
+++ b/odex25_takaful/odex_takaful/models/family_member.py
@@ -59,6 +59,9 @@ class FamilyMember(models.Model):
allowed_sponsorship = fields.Boolean(related='benefit_id.benefit_category_id.allowed_sponsorship')
+ def server_action_print_and_send_orphan_reports(self):
+ return self.env.ref('odex_takaful.action_report_orphan').report_action(self)
+
def name_get(self):
result = []
show_age = self.env.context.get('show_age_in_kafalat')
diff --git a/odex25_takaful/odex_takaful/reports/orphan_report.xml b/odex25_takaful/odex_takaful/reports/orphan_report.xml
index 559834b77..c05e29ae5 100644
--- a/odex25_takaful/odex_takaful/reports/orphan_report.xml
+++ b/odex25_takaful/odex_takaful/reports/orphan_report.xml
@@ -18,10 +18,11 @@
+
-
+
@@ -56,7 +57,7 @@
@@ -65,7 +66,7 @@
@@ -91,7 +92,7 @@
@@ -100,7 +101,7 @@
@@ -112,7 +113,7 @@
@@ -121,7 +122,7 @@
| تم الالتحاق في إنسان عام |
- |
+ |
@@ -133,7 +134,7 @@
@@ -142,7 +143,7 @@
@@ -154,7 +155,7 @@
@@ -163,7 +164,7 @@
@@ -175,7 +176,7 @@
@@ -184,7 +185,7 @@
@@ -196,7 +197,17 @@
@@ -205,7 +216,7 @@
@@ -217,7 +228,7 @@
@@ -226,7 +237,7 @@
@@ -245,7 +256,7 @@
-
+
@@ -315,6 +326,7 @@
+
@@ -322,7 +334,7 @@
Orphan Report
- takaful.sponsorship
+ family.member
qweb-pdf
odex_takaful.report_orphan_document
odex_takaful.report_orphan_document