13 lines
451 B
Python
13 lines
451 B
Python
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,
|
|
} |