添加功能

This commit is contained in:
李鹏宇
2026-02-02 15:43:16 +08:00
parent 1c635c9fc4
commit c6f28e92c4
4 changed files with 15 additions and 22 deletions
@@ -451,6 +451,8 @@ class SoongWorkflowCommentWizard(models.TransientModel):
if hasattr(related_record, 'self_users_ids'):
user_ids = [employee.user_id.id for employee in self.employee_ids if employee.user_id]
related_record.self_users_ids = [(6, 0, user_ids)] if user_ids else [(5,)]
if not self.trans_link_id.name:
raise UserError('无转交节点')
record_id.write({'state': self.trans_link_id.name})
if self.circulated_employee_ids:
workflow_record_id.is_log2 = True
-1
View File
@@ -13,7 +13,6 @@
'depends': ['hr_contract', 'yuthon_hr_employee', 'base', 'yuthon_salary'],
'data': [
'security/ir.model.access.csv',
'security/company_rule.xml',
'data/contract_code_data.xml',
'wizard/yuthon_contract_wizard_views.xml',
'views/inherit_hr_contract_views.xml',
@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record model="ir.rule" id="yuthon_hr_contract_rule">
<field name="name">合同多公司</field>
<field name="model_id" ref="model_hr_contract"/>
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
</record>
</odoo>
@@ -49,19 +49,6 @@
<field name="vacation_date" column_invisible="1"/>
<field name="open_start_time"/>
<field name="company_old"/>
<field name="previous_year"/>
<field name="valid_date"/>
<field name="year_distribution"/>
<field name="used_this_year"/>
<field name="remainder_year"/>
<field name="last_holiday"/>
<field name="last_workday"/>
<field name="valid_date1"/>
<field name="year_holiday"/>
<field name="year_workday"/>
<field name="year_sum"/>
<field name="used_this_year1"/>
<field name="remainder_year1"/>
<field name="should_attendance" options='{ "fg_color": "white: should_attendance == False"}'/>
<field name="actual_attendance" options='{ "fg_color": "white: actual_attendance == False"}'/>
<field name="right_days" options='{ "fg_color": "white: right_days == False"}'/>
@@ -94,6 +81,19 @@
<field name="hospital_sick_leave" options='{ "fg_color": "white: hospital_sick_leave == False"}'/>
<field name="recovery_sick_leave" options='{ "fg_color": "white: recovery_sick_leave == False"}'/>
<field name="exam_leave" options='{ "fg_color": "white: exam_leave == False"}'/>
<field name="previous_year"/>
<field name="valid_date"/>
<field name="year_distribution"/>
<field name="used_this_year"/>
<field name="remainder_year"/>
<field name="last_holiday"/>
<field name="last_workday"/>
<field name="valid_date1"/>
<field name="year_holiday"/>
<field name="year_workday"/>
<field name="year_sum"/>
<field name="used_this_year1"/>
<field name="remainder_year1"/>
<button name="log" type="object" string="详情" class="oe_highlight"/>
<button name="button_put" string="发送" invisible="vacation_state == 'confirmed'" type="object"
class="oe_highlight"/>