From 7297aa03195e6161a7b43833ee592da4a19ff159 Mon Sep 17 00:00:00 2001 From: Kamesh Patel Date: Fri, 25 Sep 2020 06:21:34 +0000 Subject: [PATCH] [FIX] sale_timesheet, web: disable autofocus on create invoce action Before this commit: The date range widget opened by default when the 'create invoices' the wizard is opened. because the default focus is 'Timesheets Period' field. After this commit: Disable autofocus on 'create invoice' action, after this changes The date range widget is not opened by default when the 'create invoices' the wizard is opened. Task-2344289 closes odoo/odoo#60122 X-original-commit: cf8545e10062ba89ac0de5441cfcbdb65d921eaa Signed-off-by: Yannick Tivisse (yti) --- .../sale_timesheet/wizard/sale_make_invoice_advance_views.xml | 3 +++ addons/web/static/src/js/views/form/form_view.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/sale_timesheet/wizard/sale_make_invoice_advance_views.xml b/addons/sale_timesheet/wizard/sale_make_invoice_advance_views.xml index bf1d33fd9cf..676b618af38 100644 --- a/addons/sale_timesheet/wizard/sale_make_invoice_advance_views.xml +++ b/addons/sale_timesheet/wizard/sale_make_invoice_advance_views.xml @@ -5,6 +5,9 @@ sale.advance.payment.inv + + true +