Merge pull request #1803 from expsa/odex25_transactions_dev

update entity field
This commit is contained in:
esraa8mostafa 2024-11-21 15:50:49 +02:00 committed by GitHub
commit b04ac66390
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -2774,6 +2774,12 @@ msgstr "مرجعه"
msgid "Reviewer Employee"
msgstr "صلاحية لجنة المراجعة"
#. module: exp_transaction_documents
#: model:res.groups,name:exp_transaction_documents.group_cm_approval
msgid "Approval Transactions"
msgstr "صلاحية موافقة المعاملات"
#. module: exp_transaction_documents
#: code:addons/exp_transaction_documents/models/entity.py:0
#, python-format
@ -3164,7 +3170,7 @@ msgstr "موافقة مدير الوحدة"
#: model:ir.model.fields,field_description:exp_transaction_documents.field_transaction_transaction__entity_id
#: model_terms:ir.ui.view,arch_db:exp_transaction_documents.transaction_details_report_temp
msgid "Unit Responsible"
msgstr "مسئول الوجدة"
msgstr "مسئول الوحدة"
#. module: exp_transaction_documents
#: model:ir.actions.server,name:exp_transaction_documents.action_unread_incoming_transaction_from

View File

@ -40,7 +40,7 @@ class Transaction(models.Model):
employee_id = fields.Many2one(comodel_name='cm.entity', string='Created By',
default=lambda self: self.default_employee_id())
entity_id = fields.Many2one(comodel_name='cm.entity', string='Unit Responsible',
related='employee_id.parent_id', store=True)
related='preparation_id.manager_id', store=True)
procedure_id = fields.Many2one(comodel_name='cm.procedure', string='Procedure')
attachment_num = fields.Integer(string='No. of Attachments', compute='compute_attachment_num')
body = fields.Html(string='Transaction Details')