Skip to content

Commit 66dce48

Browse files
committed
Merge PR #248 into 18.0
Signed-off-by pedrobaeza
2 parents 17a437e + 1a2e794 commit 66dce48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

payroll/models/hr_payslip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class HrPayslip(models.Model):
3838
"applied will be all the rules set on the structure of all contracts "
3939
"of the employee valid for the chosen period",
4040
)
41-
name = fields.Char(string="Payslip Name", readonly=True)
41+
name = fields.Char(string="Payslip Name")
4242
number = fields.Char(
4343
string="Reference",
4444
readonly=True,

payroll/views/hr_payslip_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
</div>
145145
<div class="oe_title">
146146
<h1>
147-
<field name="name" force_save="1" />
147+
<field name="name" readonly="state != 'draft'" />
148148
</h1>
149149
</div>
150150
<group name="top">

0 commit comments

Comments
 (0)