From a2963d689d4688e2234a86472eb454bc25e2c14b Mon Sep 17 00:00:00 2001 From: "Thomas Becquevort (thbe)" Date: Fri, 28 Jul 2023 15:08:34 +0000 Subject: [PATCH] [IMP] hr_expense, sale_expense: category on product form view Prior to this PR, when creating a new product.product model, a product.category is allocated. As it is not shown on the product.expense.form view, the user might make mistakes if he did not set the product.category himself. This can be fixed by adding the product.category field on the view to allow the user to modify it. Also, some design changes are made at the same time to improve the form view. This PR improves the product.product.expense.form view by adding the product.category field so the user can modify it and also by modifying the general layout of the view. The view is modified adding the field, aligning the two first fields and removing the notebook page for the notes and placing it in the continuity of the view as it is the only page in the notebook task-3413267 closes odoo/odoo#130065 Signed-off-by: Laurent Smet (las) --- addons/hr_expense/views/hr_expense_views.xml | 19 ++++++++----------- addons/sale_expense/views/product_view.xml | 2 +- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index 9c8ae320240..c77081360f4 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -519,28 +519,25 @@ - - + +