diff --git a/tianhe_approvals/__manifest__.py b/tianhe_approvals/__manifest__.py index c644c770f..ddd677956 100644 --- a/tianhe_approvals/__manifest__.py +++ b/tianhe_approvals/__manifest__.py @@ -37,6 +37,10 @@ 'views/tianhe_tryout_official_approval.xml', 'views/tianhe_exercitation_tryout_approval.xml', 'views/generic_forms_reassignment.xml', + 'views/tianhe_meeting_minutes_approval.xml', + 'views/tianhe_party_branch_committee_post.xml', + 'views/tianhe_shift_registration_form.xml', + 'views/tianhe_engineering_approval.xml', 'views/tianhe_property_management_reporting.xml', 'views/tianhe_fire_safety_management.xml', 'views/tianhe_information_ublish_approval_form.xml', diff --git a/tianhe_approvals/data/approval_category_type_data.xml b/tianhe_approvals/data/approval_category_type_data.xml index 02479af1e..1f052e032 100644 --- a/tianhe_approvals/data/approval_category_type_data.xml +++ b/tianhe_approvals/data/approval_category_type_data.xml @@ -132,6 +132,41 @@ 调岗 generic_forms_reassignment + + + + 离职表 + dimission + + + + 试用期转正式员工 + tryout_official + + + + 实习期转试用期 + exercitation_tryout + + + + 党支委发文 + party_branch_committee_post + + + + 调班登记表 + shift_registration_form + + + + 会议纪要 + meeting_minutes + + + + 工程立项 + engineering 物业经营报表管理 diff --git a/tianhe_approvals/models/__init__.py b/tianhe_approvals/models/__init__.py index f1b5c225a..6fcf3d5c4 100644 --- a/tianhe_approvals/models/__init__.py +++ b/tianhe_approvals/models/__init__.py @@ -10,6 +10,12 @@ from . import tianhe_document_processing_approval from . import tianhe_property_submission_approval from . import tianhe_rental_receipt_approval from . import generic_forms_replacement_card +from . import tianhe_dimission_approval +from . import tianhe_tryout_official_approval +from . import tianhe_exercitation_tryout_approval +from . import tianhe_shift_registration_form +from . import tianhe_meeting_minutes_approval +from . import generic_forms_replacement_card from . import generic_forms_overtime from . import generic_forms_outing from . import generic_forms_remove_holiday @@ -17,6 +23,7 @@ from . import tianhe_dimission_approval from . import tianhe_tryout_official_approval from . import tianhe_exercitation_tryout_approval from . import generic_forms_reassignment +from . import tianhe_engineering_approval from . import tianhe_fire_safety_management from . import tianhe_information_ublish_approval_form from . import tianhe_lease_contract_approval_form diff --git a/tianhe_approvals/models/inherit_approval_category.py b/tianhe_approvals/models/inherit_approval_category.py index 214328eca..38b25d118 100644 --- a/tianhe_approvals/models/inherit_approval_category.py +++ b/tianhe_approvals/models/inherit_approval_category.py @@ -33,6 +33,10 @@ class ApprovalCategory(models.Model): ('tryout_official', '试用期转正式员工'), ('exercitation_tryout', '实习期转试用期'), ('generic_forms_reassignment', '公司通用表单——调岗'), + ('party_branch_committee_post', '党支委发文'), + ('shift_registration_form', '调班登记表'), + ('meeting_minutes', '会议纪要'), + ('engineering', '工程立项'), ('tianhe_property_management_reporting', '物业经营报表管理'), ('tianhe_fire_safety_management', '消防安全管理'), ('tianhe_information_ublish_approval_form', '信息发布呈批表'), diff --git a/tianhe_approvals/models/inherit_approval_request.py b/tianhe_approvals/models/inherit_approval_request.py index 107202281..74b8203c4 100644 --- a/tianhe_approvals/models/inherit_approval_request.py +++ b/tianhe_approvals/models/inherit_approval_request.py @@ -52,6 +52,8 @@ class ApprovalRequestLine(models.Model): _description = '明细行' approval_request_id = fields.Many2one('approval.request') + + # 董事会议题申报表 topic = fields.Char(string='议题') unit_price = fields.Char(string="单价") rent = fields.Char(string="租金") @@ -59,3 +61,10 @@ class ApprovalRequestLine(models.Model): date_end = fields.Datetime(string="结束时间") + # 工程立项 + property_name = fields.Char(string='物业名称') + area = fields.Char(string='面积') + property_id = fields.Char(string='物业ID') + project_flow = fields.Char(string='项目流水号') + + diff --git a/tianhe_approvals/models/tianhe_engineering_approval.py b/tianhe_approvals/models/tianhe_engineering_approval.py new file mode 100644 index 000000000..283a9a5ad --- /dev/null +++ b/tianhe_approvals/models/tianhe_engineering_approval.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- +from odoo import api, fields, models, tools, _ +from odoo.exceptions import ValidationError + + +class TianHeEngineeringApproval(models.Model): + _inherit = "approval.request" + _description = '工程立项' + + engineering_type = fields.Char(string="工程类型") + engineering_place = fields.Char(string="项目地址") diff --git a/tianhe_approvals/models/tianhe_meeting_minutes_approval.py b/tianhe_approvals/models/tianhe_meeting_minutes_approval.py new file mode 100644 index 000000000..a1407ea66 --- /dev/null +++ b/tianhe_approvals/models/tianhe_meeting_minutes_approval.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +from odoo import api, fields, models, tools, _ +from odoo.exceptions import ValidationError + + +class TianHeMeetingMinutesApproval(models.Model): + _inherit = "approval.request" + _description = '会议纪要' + + # 不会写 + attend_users = fields.Char(string="出席人员") + attend_persons = fields.Char(string="列席人员") + compere = fields.Char(string="主持人") + meeting_place = fields.Char(string="会议地点") + meeting_subject = fields.Char(string="会议主题") diff --git a/tianhe_approvals/models/tianhe_shift_registration_form.py b/tianhe_approvals/models/tianhe_shift_registration_form.py new file mode 100644 index 000000000..f4ef43beb --- /dev/null +++ b/tianhe_approvals/models/tianhe_shift_registration_form.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +from odoo import api, fields, models, tools, _ +from odoo.exceptions import ValidationError + + +class TianHeShiftRegistrationFormApproval(models.Model): + _inherit = "approval.request" + _description = '调班登记表' + + transferees = fields.Many2one('res.users', string="调班人") + accept_transferred = fields.Many2one('res.users', string="被调班人") + time_transferred = fields.Datetime(string="调班时间") diff --git a/tianhe_approvals/views/tianhe_engineering_approval.xml b/tianhe_approvals/views/tianhe_engineering_approval.xml new file mode 100644 index 000000000..dece53701 --- /dev/null +++ b/tianhe_approvals/views/tianhe_engineering_approval.xml @@ -0,0 +1,29 @@ + + + + approvals.category.type.code.engineering.approval + approval.request + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tianhe_approvals/views/tianhe_meeting_minutes_approval.xml b/tianhe_approvals/views/tianhe_meeting_minutes_approval.xml new file mode 100644 index 000000000..853e199f9 --- /dev/null +++ b/tianhe_approvals/views/tianhe_meeting_minutes_approval.xml @@ -0,0 +1,21 @@ + + + + approvals.category.type.code.meeting.minutes.approval + approval.request + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tianhe_approvals/views/tianhe_party_branch_committee_post.xml b/tianhe_approvals/views/tianhe_party_branch_committee_post.xml new file mode 100644 index 000000000..11ad516e0 --- /dev/null +++ b/tianhe_approvals/views/tianhe_party_branch_committee_post.xml @@ -0,0 +1,23 @@ + + + + approvals.category.type.code.party.branch.committee.post.approval + approval.request + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tianhe_approvals/views/tianhe_shift_registration_form.xml b/tianhe_approvals/views/tianhe_shift_registration_form.xml new file mode 100644 index 000000000..46294594f --- /dev/null +++ b/tianhe_approvals/views/tianhe_shift_registration_form.xml @@ -0,0 +1,20 @@ + + + + approvals.category.type.code.shift.registration.form.approval + approval.request + + + + + + + + + + + + + + + \ No newline at end of file