We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 17a437e + 1a2e794 commit 66dce48Copy full SHA for 66dce48
payroll/models/hr_payslip.py
@@ -38,7 +38,7 @@ class HrPayslip(models.Model):
38
"applied will be all the rules set on the structure of all contracts "
39
"of the employee valid for the chosen period",
40
)
41
- name = fields.Char(string="Payslip Name", readonly=True)
+ name = fields.Char(string="Payslip Name")
42
number = fields.Char(
43
string="Reference",
44
readonly=True,
payroll/views/hr_payslip_views.xml
@@ -144,7 +144,7 @@
144
</div>
145
<div class="oe_title">
146
<h1>
147
- <field name="name" force_save="1" />
+ <field name="name" readonly="state != 'draft'" />
148
</h1>
149
150
<group name="top">
0 commit comments