From 4f65c035b3c57bc1c307358c1893b3c778dd1289 Mon Sep 17 00:00:00 2001 From: "Ali Alfie (alal)" Date: Tue, 16 Jan 2024 15:18:02 +0100 Subject: [PATCH] [IMP] hr_expense: editable expense lines In #138387 we modified the expense lines tree in expense reports so that the user can click on the lines to see an attached receipt in the viewer at the side of the webpage. The tree was made to be readonly to make clicking the lines easier and to make it harder for the user to change a field by mistake. This commit reverts the lines to being editable again while leaving some fields as readonly like quantity and taxes as those can invalidate the expense. task-3685651 closes odoo/odoo#149588 Signed-off-by: Quentin De Paoli --- addons/hr_expense/views/hr_expense_views.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index dbec1f877ef..66e8ee4a560 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -882,7 +882,7 @@ }" readonly="not is_editable" force_save="1"> - + @@ -903,18 +903,18 @@ optional="show" options="{'product_field': 'product_id', 'account_field': 'account_id', 'business_domain': 'expense'}"/> - + - + + context="{'default_company_id': company_id}" readonly="True"/> - + readonly="true" groups="base.group_multi_currency"/> +