From 5879bebec9cb83fb938b6e86814cb1aaf471861c Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sat, 5 Feb 2022 01:17:16 +0100 Subject: [PATCH] account_invoice_start_end_dates: add start/end dates in tree view of move lines The 2 new fields are hidden by default --- .../__manifest__.py | 6 +++- .../views/account_move.xml | 26 +-------------- .../views/account_move_line.xml | 32 +++++++++++++++++++ 3 files changed, 38 insertions(+), 26 deletions(-) create mode 100644 account_invoice_start_end_dates/views/account_move_line.xml diff --git a/account_invoice_start_end_dates/__manifest__.py b/account_invoice_start_end_dates/__manifest__.py index 49118dbe058..c6a1f3cfd92 100644 --- a/account_invoice_start_end_dates/__manifest__.py +++ b/account_invoice_start_end_dates/__manifest__.py @@ -13,7 +13,11 @@ "maintainers": ["alexis-via"], "website": "https://github.com/OCA/account-closing", "depends": ["account"], - "data": ["views/account_move.xml", "views/product_template.xml"], + "data": [ + "views/account_move.xml", + "views/account_move_line.xml", + "views/product_template.xml", + ], "demo": ["demo/product_demo.xml"], "installable": True, } diff --git a/account_invoice_start_end_dates/views/account_move.xml b/account_invoice_start_end_dates/views/account_move.xml index d571698fecc..ceed06bdbcb 100644 --- a/account_invoice_start_end_dates/views/account_move.xml +++ b/account_invoice_start_end_dates/views/account_move.xml @@ -1,34 +1,10 @@ - - start_end_dates.view_move_line_form - account.move.line - - - - - - - - - - - start_end_dates.view_move_line_tree - account.move.line - - - - - - - - - start_end_dates.view_move_form account.move diff --git a/account_invoice_start_end_dates/views/account_move_line.xml b/account_invoice_start_end_dates/views/account_move_line.xml new file mode 100644 index 00000000000..f3b6326d12c --- /dev/null +++ b/account_invoice_start_end_dates/views/account_move_line.xml @@ -0,0 +1,32 @@ + + + + + start_end_dates.view_move_line_form + account.move.line + + + + + + + + + + + start_end_dates.view_move_line_tree + account.move.line + + + + + + + + + +