Skip to content
Snippets Groups Projects
Commit 86089394 authored by Touati Djamel (otd)'s avatar Touati Djamel (otd)
Browse files

[FIX] hr_payroll: make the paid field clickable

Steps to reproduce the bug:
- Go to Payroll app > Payslips > To Pay
- Choose any Payslip
- Go to the Accounting Information tab

Problem:
`”Made Payment Order ?”` field is always readonly when it should be clickable when the status is in draft or in verify
according to the rule defined in the python code. It doesn't make sense to always put it in readonly in xml
because it overrides the python rule : https://github.com/odoo/enterprise/blob/faf69b3de1d7fc955e3f6271fd24b901310fe5e4/hr_payroll/models/hr_payslip.py#L58-L59



opw-2608818

closes odoo/odoo#74176

Signed-off-by: default avatarDjamel Touati <DjamelTouati@users.noreply.github.com>
parent bf296bbd
No related branches found
No related tags found
No related merge requests found
......@@ -247,7 +247,7 @@
<field name="payslip_run_id" domain="[('state','=','draft')]"/>
</group>
<group name="accounting" string="Accounting">
<field name="paid" readonly="1"/>
<field name="paid"/>
</group>
</group>
<div colspan="4">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment