From e93eaa8eface05f18845e20d988e8176a817132e Mon Sep 17 00:00:00 2001 From: Yenthe666 Date: Tue, 28 Jan 2020 10:09:00 +0000 Subject: [PATCH] [IMP] sale: set IDs on elements for easier xpaths Before this commit there were two buttons on this wizard with the same name 'create_invoices' that do different things. One creates the invoice and the other one creates and opens the invoices. By setting an unique ID on both buttons we can do a clean and easy xpath. Something like button[@id='create_invoice_open'] instead of having to use indexes or dangerous behaviours closes odoo/odoo#44072 Signed-off-by: Damien Bouvy (dbo) --- addons/sale/wizard/sale_make_invoice_advance_views.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/addons/sale/wizard/sale_make_invoice_advance_views.xml b/addons/sale/wizard/sale_make_invoice_advance_views.xml index fe1f9b8e4a5..5af37ef6a24 100644 --- a/addons/sale/wizard/sale_make_invoice_advance_views.xml +++ b/addons/sale/wizard/sale_make_invoice_advance_views.xml @@ -15,7 +15,8 @@ attrs="{'invisible': [('count','>',1)]}"/>