Skip to content

Commit 4e48154

Browse files
committed
Merge PR #242 into 17.0
Signed-off-by pedrobaeza
2 parents 648cb69 + edd1e8f commit 4e48154

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
@@ -39,7 +39,7 @@ class HrPayslip(models.Model):
3939
"applied will be all the rules set on the structure of all contracts "
4040
"of the employee valid for the chosen period",
4141
)
42-
name = fields.Char(string="Payslip Name", readonly=True)
42+
name = fields.Char(string="Payslip Name")
4343
number = fields.Char(
4444
string="Reference",
4545
readonly=True,

payroll/views/hr_payslip_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
</div>
144144
<div class="oe_title">
145145
<h1>
146-
<field name="name" force_save="1" />
146+
<field name="name" readonly="state != 'draft'" />
147147
</h1>
148148
</div>
149149
<group col="4">

0 commit comments

Comments
 (0)