[UPDATE]UPDATE ADD department_exe_id

This commit is contained in:
zainab8585 2024-07-31 09:17:18 +02:00
parent 62631aa3ae
commit a20e764583
3 changed files with 9 additions and 0 deletions

View File

@ -496,6 +496,13 @@ msgstr "الافتراضي في المشروع الجديد"
msgid "Department"
msgstr "القسم"
#. module: project_base
#: model:ir.model.fields,field_description:project_base.field_project_project__department_execute_id
msgid "Department to which executed"
msgstr " القسم المنفذ له"
#. module: project_base
#: model:ir.model.fields,field_description:project_base.field_project_invoice__name
#: model_terms:ir.ui.view,arch_db:project_base.project_detail_qweb_report

View File

@ -28,6 +28,7 @@ class Project(models.Model):
parent_id = fields.Many2one('project.project', index=True, string='Parent Project', tracking=True)
sub_project_id = fields.One2many('project.project', 'parent_id', string='Sub-Project', tracking=True)
department_id = fields.Many2one('hr.department', string='Department')
department_execute_id = fields.Many2one('hr.department', string='Department to which executed')
consultant_id = fields.Many2one('res.partner', string='Consultant')
beneficiary_id = fields.Many2one('res.partner', string='Beneficiary')
lessons_learned = fields.Html(string='Lessons learned')

View File

@ -84,6 +84,7 @@
</group>
<group>
<field name="department_id" attrs="{'readonly':[('state','not in',['draft','confirm'])]}" />
<field name="department_execute_id"/>
<field name="user_id" widget="many2one_avatar_user" attrs="{'readonly':[('state','not in',['draft'])],'required':True}" />
<label for="start" string="Period" />
<div name="dates" class="o_row">