From f20545370f4e9b90de1131ab792c07e4de271023 Mon Sep 17 00:00:00 2001 From: "Julien Alardot (jual)" Date: Thu, 14 Dec 2023 10:44:59 +0100 Subject: [PATCH] [FIX] hr_expense: Product creation default type Fix a bug where quick-create of products from the expense form view would not use the service detailed_type by default. Allowing bugs when sale_stock module is installed as it would be considered as a storable product Also updates the demo data accordingly task-3458826 closes odoo/odoo#147123 Signed-off-by: Habib Ayob (ayh) Signed-off-by: Julien Alardot (jual) --- addons/hr_expense/data/hr_expense_data.xml | 4 ++++ addons/hr_expense/views/hr_expense_views.xml | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/hr_expense/data/hr_expense_data.xml b/addons/hr_expense/data/hr_expense_data.xml index ab8522d3c5a..7fdfda7350c 100644 --- a/addons/hr_expense/data/hr_expense_data.xml +++ b/addons/hr_expense/data/hr_expense_data.xml @@ -6,6 +6,7 @@ Meals Restaurants, business lunches, etc. 0.0 + service FOOD @@ -30,6 +31,7 @@ Mileage 1.0 + service MIL @@ -42,6 +44,7 @@ Gifts Gifts to customers or vendors 0.0 + service GIFT @@ -54,6 +57,7 @@ Communication Phone bills, postage, etc. 0.0 + service COMM diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index 08834baf26e..14753984caa 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -167,7 +167,7 @@