This commit is contained in:
Bakry 2024-07-29 15:05:46 +03:00
parent e0201d9e66
commit cfbb56497f
3 changed files with 15 additions and 1 deletions

View File

@ -2072,3 +2072,13 @@ msgstr "حساب الصرف"
msgid "Department Name"
msgstr "إسم القسم"
#. module: attendances
#: model_terms:ir.ui.view,arch_db:attendances.view_attendance_transaction_filter
msgid "Employee"
msgstr "الموظف"
#. module: attendances
#: model_terms:ir.ui.view,arch_db:attendances.view_attendance_transaction_filter
msgid "Department"
msgstr "القسم"

View File

@ -36,7 +36,7 @@ class HrAttendanceTransactions(models.Model):
('out_cal', 'out Calendar')], string='Attending Type', default="in_cal")
company_id = fields.Many2one(related='employee_id.company_id')
employee_number = fields.Char(related='employee_id.emp_no', string='Employee Number',store=True)
department_id = fields.Many2one(related='employee_id.department_id',string='Department Name' ,store=True)
department_id = fields.Many2one(related='employee_id.department_id',string='Department Name' ,store=True)
def get_additional_hours(self):
for rec in self:

View File

@ -109,6 +109,10 @@
<field name="employee_id"/>
<field name="employee_number"/>
<field name="department_id" />
<group expand="0" string="Group By">
<filter name="group_employee" string="Employee" domain="[]" context="{'group_by': 'employee_id'}"/>
<filter name="group_department" string="Department" domain="[]" context="{'group_by': 'department_id'}"/>
</group>
</field>
</record>
</data>