!3089 添加功能

Merge pull request !3089 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-06-04 14:00:32 +00:00
committed by Gitee
2 changed files with 11 additions and 0 deletions
@@ -34,4 +34,14 @@ class InheritHrPayslipRun(models.Model):
rec.run_stage = 'issued'
def open_payslip(self):
return {
"name": "详情",
'type': 'ir.actions.act_window',
'res_model': 'hr.payslip.run',
"view_mode": "form",
"res_id": self.id,
}
@@ -16,6 +16,7 @@
<field name="run_stage" readonly="1"/>
<button type="object" name="Fileline" string="归档明细" class="oe_highlight"/>
<button type="object" name="add_comment" string="完成" class="oe_highlight" invisible="run_stage == 'issued'"/>
<button type="object" name="open_payslip" string="详情" class="oe_highlight"/>
</xpath>
</field>
</record>