[FIX] project: prevent editing status field in kanban view

Step:
- Navigate to the project module.
- Select any project.
- Click the status button on the Kanban view's top left.
- This action redirects to the project update Kanban view.
- Notice that the status field is unexpectedly editable.

Issue:
- In the project module, accessing the project update Kanban view allows
unintended editing of the status field.

Cause:
- Due to the new modifications made in the kanban view where the user is allowed
to perform selection from the view itself, the status field also resonates the
similar behavior.

Fix:
- By adding the 'read-only' attribute in the Kanban view specifically for the
status field, we can restrict the unintended modifications to this field.
This implementation ensures that users cannot edit the status field directly
from the Kanban view.

Task-3610481

closes odoo/odoo#144336

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
shiyam kumar
2024-01-15 16:07:44 +00:00
parent 8f7985a6e8
commit ec75467cae
@@ -82,7 +82,7 @@
</div>
<div class="col-sm-2 text-sm-start col-6 align-end">
<field name="color" invisible="1"/>
<b><field name="status" widget="status_with_color"/></b>
<b><field name="status" readonly="1" widget="status_with_color"/></b>
</div>
<div class="col-sm-2 col-6 pb-0">
<b><field name="progress_percentage" widget="percentage"/></b>