From a91c9e1be4bf16868f4fe12febf1fc17d18cb5b4 Mon Sep 17 00:00:00 2001 From: Florian Damhaut Date: Tue, 5 Apr 2022 10:57:06 +0000 Subject: [PATCH] [FIX] hr_expense: Expense unit price is readonly if it has a cost Step to reproduce: - Create an expense for an expense product which has a cost Current behaviour: - Expense's unit price is modifiable which shouldn't be the case according to the help message of hr.expense.unit_amount Behaviour after PR: - Expense unit price is only modifiable is there is no unit_amount (unit_amount = 0) opw-2781040 closes odoo/odoo#90014 X-original-commit: 44b6d60de301651e52df4c41e32e38d23b0a154e Signed-off-by: Kevin Baptiste --- addons/hr_expense/views/hr_expense_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index c4aec67d67b..01ab49ea0c7 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -143,7 +143,7 @@
- +