From db5bcd7d036ac15e5db8b044756c124c65742cab Mon Sep 17 00:00:00 2001 From: HviorForgeFlow Date: Fri, 29 May 2020 12:27:01 +0200 Subject: [PATCH] [IMP] Update pre-commit lints according with OCA ones --- rma_account/data/rma_operation.xml | 10 +- rma_account/views/account_move_view.xml | 61 ++++--- rma_account/views/rma_account_menu.xml | 43 +++-- rma_account/views/rma_operation_view.xml | 10 +- rma_account/views/rma_order_line_view.xml | 126 +++++++++------ rma_account/views/rma_order_view.xml | 84 ++++++---- rma_account/wizards/rma_add_account_move.xml | 158 ++++++++++++------- rma_account/wizards/rma_refund.xml | 69 +++++--- 8 files changed, 349 insertions(+), 212 deletions(-) diff --git a/rma_account/data/rma_operation.xml b/rma_account/data/rma_operation.xml index 139981df..2c320f3b 100644 --- a/rma_account/data/rma_operation.xml +++ b/rma_account/data/rma_operation.xml @@ -1,4 +1,4 @@ - + @@ -16,8 +16,8 @@ ordered no customer - - + + @@ -27,8 +27,8 @@ no ordered supplier - - + + diff --git a/rma_account/views/account_move_view.xml b/rma_account/views/account_move_view.xml index 8c927540..b1a9e47f 100644 --- a/rma_account/views/account_move_view.xml +++ b/rma_account/views/account_move_view.xml @@ -1,18 +1,27 @@ - + account.move.form account.move - + -
-
@@ -23,17 +32,18 @@ rma.invoice.line.form account.move.line - - + + - - - + + + - + @@ -45,17 +55,20 @@ account.move.customer.rma account.move - + - + ('type', '=', 'in_invoice')]}" + class="oe_edit_only" + options="{'no_create': True}" + /> @@ -64,6 +77,6 @@ Invoice Line account.move.line form - +
diff --git a/rma_account/views/rma_account_menu.xml b/rma_account/views/rma_account_menu.xml index 6f552638..b5cb1ef3 100644 --- a/rma_account/views/rma_account_menu.xml +++ b/rma_account/views/rma_account_menu.xml @@ -1,9 +1,12 @@ - + - + Customer RMA rma.order.line [('type','=', 'customer')] @@ -15,45 +18,57 @@ Supplier RMA rma.order.line [('type','=', 'supplier')] - {"search_default_to_refund":1, "supplier":1} + {"search_default_to_refund":1, "supplier":1} tree,form - + - + parent="rma.menu_rma_root" + /> - + action="action_rma_account_customer_lines" + /> - + action="action_rma_supplier_lines" + /> - + action="action_rma_account_customer_lines" + /> - + action="action_rma_supplier_lines" + /> diff --git a/rma_account/views/rma_operation_view.xml b/rma_account/views/rma_operation_view.xml index 6f9c4062..58695947 100644 --- a/rma_account/views/rma_operation_view.xml +++ b/rma_account/views/rma_operation_view.xml @@ -1,12 +1,12 @@ - + rma.operation.tree rma.operation - + - + @@ -14,10 +14,10 @@ rma.operation.form rma.operation - + - + diff --git a/rma_account/views/rma_order_line_view.xml b/rma_account/views/rma_order_line_view.xml index 7accc439..47fa18ef 100644 --- a/rma_account/views/rma_order_line_view.xml +++ b/rma_account/views/rma_order_line_view.xml @@ -1,48 +1,61 @@ - + rma.order.line.supplier.form rma.order.line - + - - + ('move_id.partner_id', 'child_of', partner_id)]" + /> - + - + - + - - + + @@ -51,46 +64,59 @@ rma.order.line.form rma.order.line - + - - + ('move_id.partner_id', 'child_of', partner_id)]" + /> - + - + - + - - + + @@ -99,11 +125,15 @@ rma.order.line.select rma.order.line - + - + diff --git a/rma_account/views/rma_order_view.xml b/rma_account/views/rma_order_view.xml index 5c6b0e82..4378e3eb 100644 --- a/rma_account/views/rma_order_view.xml +++ b/rma_account/views/rma_order_view.xml @@ -1,25 +1,36 @@ - + rma.order.form - rma_account rma.order - + - -