fix employee management

This commit is contained in:
2025-06-21 10:11:54 +07:00
parent 446d1f7d9d
commit 163cd85038
14 changed files with 27 additions and 66 deletions
@@ -0,0 +1,13 @@
from odoo import models
class MyReport(models.AbstractModel):
_name = 'report.employee_management.my_report_template' # module.template
_description = 'Employee Profile Report'
def _get_report_values(self, docids, data=None):
# Lấy tất cả bản ghi employee.profile
docs = self.env['employee.profile'].browse(docids)
return {
'doc_model': 'employee.profile',
'docs': docs,
}