@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user