fix employee management
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user