From 0c2b8be693ab74438c5768c5d305f5bd69208e94 Mon Sep 17 00:00:00 2001 From: MahmoudSalahEXP Date: Thu, 16 Oct 2025 21:03:33 +0300 Subject: [PATCH] sponorship_editing security and catalog --- odex25_ensan/odex_takaful/models/takaful_sponorship_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_ensan/odex_takaful/models/takaful_sponorship_model.py b/odex25_ensan/odex_takaful/models/takaful_sponorship_model.py index ee8de5dd5..13f523efa 100644 --- a/odex25_ensan/odex_takaful/models/takaful_sponorship_model.py +++ b/odex25_ensan/odex_takaful/models/takaful_sponorship_model.py @@ -64,7 +64,7 @@ class TakafulSponsorship(models.Model): sponsorship_type = fields.Selection([('person', 'Individual'),('group', 'Group')],string='Sponsorship Type',tracking=True) code = fields.Char(string="Sequence",copy=False,readonly=True) benefit_type = fields.Selection([('orphan', 'Orphans'),('widow', 'Widows')],string='Sponsorship Beneficiary Type',tracking=True) - branch_custom_id = fields.Many2one('branch.settings', string="Branch", default=lambda self: self._default_branch_custom_id(), required=False, tracking=True) + branch_custom_id = fields.Many2one('branch.settings', string="Branch", default=lambda self: self._default_branch_custom_id(), required=True, tracking=True) sponsorship_creation_date = fields.Datetime(string="Sponsorship Creation Date", default=fields.Datetime.now, required=True, copy=False) sponsor_note = fields.Text(string='Sponsor Note') sponsor_or_donor_type = fields.Selection(string='Sponsor / Donor Type',selection=[('registered', 'Registered'), ('new_sponsor', 'New Sponsor'),('not_registered', 'Not Registered'),('unknown', 'Unknown')], required=True)