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 648cb69 + edd1e8f commit 4e48154Copy full SHA for 4e48154
payroll/models/hr_payslip.py
@@ -39,7 +39,7 @@ class HrPayslip(models.Model):
39
"applied will be all the rules set on the structure of all contracts "
40
"of the employee valid for the chosen period",
41
)
42
- name = fields.Char(string="Payslip Name", readonly=True)
+ name = fields.Char(string="Payslip Name")
43
number = fields.Char(
44
string="Reference",
45
readonly=True,
payroll/views/hr_payslip_views.xml
@@ -143,7 +143,7 @@
143
</div>
144
<div class="oe_title">
145
<h1>
146
- <field name="name" force_save="1" />
+ <field name="name" readonly="state != 'draft'" />
147
</h1>
148
149
<group col="4">
0 commit comments