Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] add missing model description #79

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions employee_background/models/employee_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

class EmployeeVerification(models.Model):
_name = 'employee.verification'
_description = 'Employee Verification'
_rec_name = 'verification_id'

verification_id = fields.Char('ID', readonly=True, copy=False, help="Verification Id")
Expand Down
1 change: 1 addition & 0 deletions employee_background/models/xls_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

class DefaultTemplateXls(models.AbstractModel):
_name = 'report.employee_background.default_verification_details'
_description = 'Report DefaultTemplateXls'
# _inherit = 'report.report_xlsx.abstract'

_logger = logging.getLogger(__name__)
Expand Down
4 changes: 4 additions & 0 deletions history_employee/models/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ def onchange_dateend(self):

class DepartmentHistory(models.Model):
_name = 'department.history'
_description = 'Department History'

employee_id = fields.Char(string='Employee Id', help="Employee")
employee_name = fields.Char(string='Employee Name', help="Name")
Expand All @@ -200,6 +201,7 @@ class DepartmentHistory(models.Model):

class TimesheetCost(models.Model):
_name = 'timesheet.cost'
_description = 'Timesheet Cost'

employee_id = fields.Char(string='Employee Id', help="Employee")
employee_name = fields.Char(string='Employee Name', help="Name")
Expand All @@ -209,6 +211,7 @@ class TimesheetCost(models.Model):

class SalaryHistory(models.Model):
_name = 'salary.history'
_description = 'Salary History'

employee_id = fields.Char(string='Employee Id', help="Employee")
employee_name = fields.Char(string='Employee Name', help="Name")
Expand All @@ -218,6 +221,7 @@ class SalaryHistory(models.Model):

class ContractHistory(models.Model):
_name = 'contract.history'
_description = 'Contract History'

employee_id = fields.Char(string='Employee Id', help="Employee")
employee_name = fields.Char(string='Employee Name', help="Name")
Expand Down
1 change: 1 addition & 0 deletions hr_company_policy/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class CompanyPolicy(models.Model):

class PolicyWizard(models.TransientModel):
_name = 'res.company.policy'
_description = 'Policy Wizard'

company_id = fields.Many2one('res.company', help="Company")
policy_info = fields.Html(related='company_id.company_info')
Expand Down
1 change: 1 addition & 0 deletions hr_custody/models/wizard_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class WizardReason(models.TransientModel):
Hr custody contract refuse wizard.
"""
_name = 'wizard.reason'
_description = 'Custody Reason'

def send_reason(self):
context = self._context
Expand Down
1 change: 1 addition & 0 deletions hr_employee_shift/models/hr_employee_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class HrEmployeeContract(models.Model):

class HrSchedule(models.Model):
_name = 'hr.shift.schedule'
_description = 'HR Schedule'

start_date = fields.Date(string="Date From", required=True, help="Starting date for the shift")
end_date = fields.Date(string="Date To", required=True, help="Ending date for the shift")
Expand Down
1 change: 1 addition & 0 deletions hr_employee_shift/models/hr_generate_shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

class HrGenerateShift(models.Model):
_name = 'hr.shift.generate'
_description = 'HR Generate Shift'

hr_department = fields.Many2one('hr.department', string="Department", help="Department")
start_date = fields.Date(string="Start Date", required=True, help="Start date")
Expand Down
1 change: 1 addition & 0 deletions hr_employee_updation/models/hr_employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,6 @@ class EmployeeRelationInfo(models.Model):
"""Table for keep employee family information"""

_name = 'hr.employee.relation'
_description = 'Employee Relation Info'

name = fields.Char(string="Relationship", help="Relationship with thw employee")
1 change: 1 addition & 0 deletions hr_gratuity_settlement/models/other_settlements.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def draft_function(self):

class SettlementReason(models.Model):
_name = 'settlement.reason'
_description = 'Settlement Reason'
_rec_name = 'settlement_reason'


Expand Down
1 change: 1 addition & 0 deletions hr_insurance/models/policy_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

class InsurancePolicy(models.Model):
_name = 'insurance.policy'
_description = 'Insurance Policy'

name = fields.Char(string='Name', required=True)
note_field = fields.Html(string='Comment', help="Notes for the insurance policy if any")
Expand Down
1 change: 1 addition & 0 deletions hr_reminder/models/hr_reminder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

class HrPopupReminder(models.Model):
_name = 'hr.reminder'
_description = 'HR Popup Reminder'

name = fields.Char(string='Title', required=True)
model_name = fields.Many2one('ir.model', help="Choose the model name", string="Model", required=True, ondelete='cascade', domain="[('model', 'like','hr')]")
Expand Down
1 change: 1 addition & 0 deletions hr_resignation/models/hr_resignation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

class HrResignation(models.Model):
_name = 'hr.resignation'
_description = 'HR Resignation'
_inherit = 'mail.thread'
_rec_name = 'employee_id'

Expand Down
1 change: 1 addition & 0 deletions hr_vacation_mngmt/models/hr_employee_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class HrFlightTicket(models.Model):
_name = 'hr.flight.ticket'
_description = 'HR Flight Ticket'

name = fields.Char()
employee_id = fields.Many2one('hr.leave', string='Employee', required=True, help="Employee")
Expand Down
1 change: 1 addition & 0 deletions hr_vacation_mngmt/models/hr_vacation.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def send_leave_reminder(self):

class PendingTask(models.Model):
_name = 'pending.task'
_description = 'Pending Task'

name = fields.Char(string='Task', required=True)
leave_id = fields.Many2one('hr.leave', string='Leave Request', help="Leave request")
Expand Down
1 change: 1 addition & 0 deletions hr_vacation_mngmt/wizard/reassign_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

class ReAssignTask(models.TransientModel):
_name = 'task.reassign'
_description = 'ReAssign Task'

pending_tasks = fields.One2many('pending.task', related='leave_req_id.pending_tasks', string='Pending Tasks', readonly=False)
leave_req_id = fields.Many2one('hr.leave', string='Leave Request')
Expand Down
1 change: 1 addition & 0 deletions hrms_dashboard/report/broadfactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def init(self):

class ReportOverdue(models.AbstractModel):
_name = 'report.hrms_dashboard.report_broadfactor'
_description = 'Report Overdue'

@api.model
def get_report_values(self, docids=None, data=None):
Expand Down
1 change: 1 addition & 0 deletions oh_employee_documents_expiry/models/document_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@

class DocumentType(models.Model):
_name = 'document.type'
_description = 'Document Type'

name = fields.Char(string="Name", required=True, help="Name")
2 changes: 2 additions & 0 deletions oh_hr_zk_attendance/models/machine_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class HrEmployee(models.Model):

class ZkMachine(models.Model):
_name = 'zk.machine.attendance'
_description = 'ZK Machine Attendance'
_inherit = 'hr.attendance'

@api.constrains('check_in', 'check_out', 'employee_id')
Expand Down Expand Up @@ -39,6 +40,7 @@ def _check_validity(self):

class ReportZkDevice(models.Model):
_name = 'zk.report.daily.attendance'
_description = 'Report ZK Device'
_auto = False
_order = 'punching_day desc'

Expand Down
1 change: 1 addition & 0 deletions oh_hr_zk_attendance/models/zk_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class HrAttendance(models.Model):

class ZkMachine(models.Model):
_name = 'zk.machine'
_description = 'ZK Machine'

name = fields.Char(string='Machine IP', required=True)
port_no = fields.Integer(string='Port No', required=True)
Expand Down
2 changes: 2 additions & 0 deletions ohrms_holidays_approval/models/leave_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def enable_multi_level_validation(self):
class HrLeaveValidators(models.Model):
""" Model for leave validators in Leave Types configuration """
_name = 'hr.holidays.validators'
_description = 'HR Leave Validators'

hr_holiday_status = fields.Many2one('hr.leave.type')

Expand All @@ -218,6 +219,7 @@ class HrLeaveValidators(models.Model):
class LeaveValidationStatus(models.Model):
""" Model for leave validators and their status for each leave request """
_name = 'leave.validation.status'
_description = 'Leave Validation Status'

holiday_status = fields.Many2one('hr.leave')

Expand Down
1 change: 1 addition & 0 deletions ohrms_salary_advance/models/salary_advance.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

class SalaryAdvancePayment(models.Model):
_name = "salary.advance"
_description = 'Salary Advance Payment'
_inherit = ['mail.thread', 'mail.activity.mixin']

name = fields.Char(string='Name', readonly=True, default=lambda self: 'Adv/')
Expand Down
1 change: 1 addition & 0 deletions uae_wps_report/wizard/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class Wizard(models.TransientModel):
_name = 'wps.wizard'
_description = 'WPS Wizard'

report_file = fields.Char()
name = fields.Char(string="File Name")
Expand Down