Merge pull request #2038 from expsa/benefits_notes_1_1

Service Tasks
This commit is contained in:
enagahh 2025-01-01 23:53:32 +02:00 committed by GitHub
commit c1e49cb77d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 3 deletions

View File

@ -13806,3 +13806,18 @@ msgstr "سبب إعادة الطلب"
#: model:ir.model,name:odex_benefit.model_reason_for_return_wizard
msgid "Reason For Return Wizard"
msgstr "سبب إعادة الطلب"
#. module: odex_benefit
#: model:res.groups,name:odex_benefit.group_approval_of_beneficiary_services
msgid "Approval Of Beneficiary Services"
msgstr "اعتماد خدمات المستفيدين"
#. module: odex_benefit
#: model:ir.model.fields.selection,name:odex_benefit.selection__service_request__state__approval_of_beneficiary_services
msgid "Approval of beneficiary services"
msgstr "اعتماد خدمات المستفيدين"
#. module: odex_benefit
#: model:ir.model.fields,field_description:odex_benefit.field_service_request__exception_or_steal_attach
msgid "Exception or steal Attachment"
msgstr "مرفق إثبات حالات الاستثناء"

View File

@ -140,13 +140,10 @@ class ServiceRequest(models.Model):
], string='state',default='draft', tracking=True)
state_a = fields.Selection(related='state', tracking=False)
state_b = fields.Selection(related='state', tracking=False)
state_c = fields.Selection(related='state', tracking=False)
refuse_reason_id = fields.Many2one('service.refuse.reason', string="Refuse Reason")
return_reason = fields.Text(string="Reason for Returning the Request")
specialist_note = fields.Text(string="Specialist's Note After Return")
@api.model
def search(self, args, offset=0, limit=None, order=None, count=False):
if self.env.user and self.env.user.id and self.env.user.has_group("odex_benefit.group_benefit_accountant_accept")\