From f1d87b37ede9b452ada45f388fee932270f1a48e Mon Sep 17 00:00:00 2001 From: Kishan Gajjar Date: Fri, 24 Mar 2017 11:52:01 +0530 Subject: [PATCH] [IMP] account: Add kanban views for all menuitems used in mobile Purpose ======= Improve readability on mobile Specification ============= Activate Kanban view on those so it could be displayed by default on mobile instead of view list List of impacted modules: - account : kanban for purchases payments - account : kanban for journal entries - account : kanban for chart of accounts - account : kanban for budgets - account_analytic_default : kanban for analytic defaults - account_asset : kanban for assets - account_asset : kanban for asset types - account_budget : kanban for Budgetary Positions - account : kanban for fiscal positions - account : kanban for taxes - account : kanban for payment terms - account : kanban for bank accounts - account : kanban for journals(reuse Accounting Dashboard) - analytic : kanban for analytic accounts - analytic : kanban for analytic entries --- addons/account/views/account_payment_view.xml | 41 +++++- addons/account/views/account_view.xml | 122 +++++++++++++++++- addons/account/views/partner_view.xml | 2 +- .../views/account_analytic_default_view.xml | 30 ++++- .../views/account_asset_views.xml | 67 +++++++++- .../views/account_budget_views.xml | 43 +++++- .../analytic/views/analytic_account_views.xml | 77 ++++++++++- 7 files changed, 367 insertions(+), 15 deletions(-) diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml index 9f9e49ecd05..3d245ff1384 100644 --- a/addons/account/views/account_payment_view.xml +++ b/addons/account/views/account_payment_view.xml @@ -40,6 +40,43 @@ + + account.payment.kanban + account.payment + + + + + + + + +
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + + +
+
+
+
+
+
+
+
+ account.payment.search account.payment @@ -145,7 +182,7 @@ Payments account.payment form - tree,form,graph + tree,kanban,form,graph {'default_payment_type': 'inbound'} [('partner_type', '=', 'customer')] @@ -163,7 +200,7 @@ Payments account.payment form - tree,form,graph + tree,kanban,form,graph {'default_payment_type': 'outbound'} [('partner_type', '=', 'supplier')] diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index e92b0b73443..73edb2208c5 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -100,6 +100,36 @@ + + + account.account.kanban + account.account + + + + + + + +
+
+
+ +
+
+ +
+
+
+ Type: +
+
+
+
+
+
+
+ account.account.search account.account @@ -119,7 +149,7 @@ Chart of Accounts account.account form - tree,form + tree,kanban,form @@ -332,7 +362,7 @@ Bank Accounts account.journal - tree,form + tree,kanban,form @@ -350,7 +380,7 @@ Journals account.journal form - tree,form + tree,kanban,form

Click to add a journal. @@ -892,6 +922,30 @@ + + account.tax.kanban + account.tax + + + + + + +

+
+
+ +
+
+ +
+
+
+ + + +
+
account.tax.search account.tax @@ -977,7 +1031,7 @@ Taxes account.tax form - tree,form + tree,kanban,form {'search_default_sale': True, 'search_default_purchase': True} @@ -1259,6 +1313,44 @@ + + + account.move.kanban + account.move + + + + + + + + +
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + + +
+
+
+
+
+
+
+
+ account.move.form account.move @@ -1355,7 +1447,7 @@ Journal Entries account.move form - tree,form + tree,kanban,form {'search_default_misc_filter':1, 'view_no_maturity': True} @@ -1487,11 +1579,29 @@ + + account.payment.term.kanban + account.payment.term + + + + + + +
+
+
Note:
+
+
+
+
+
+
Payment Terms account.payment.term form - tree,form + tree,kanban,form diff --git a/addons/account/views/partner_view.xml b/addons/account/views/partner_view.xml index 84607ad971d..16b664951ea 100644 --- a/addons/account/views/partner_view.xml +++ b/addons/account/views/partner_view.xml @@ -139,7 +139,7 @@ Fiscal Positions account.fiscal.position form - tree,form + tree,kanban,form
+ + account.analytic.default.kanban + account.analytic.default + + + + + + + + + + +
+
+ + +
+
From to
+
Product
+
Customer
+
+
+
+
+
+
+ account.analytic.default.search account.analytic.default @@ -63,7 +91,7 @@ Analytic Defaults account.analytic.default form - tree,form + tree,kanban,form {"search_default_current":1} diff --git a/addons/account_asset/views/account_asset_views.xml b/addons/account_asset/views/account_asset_views.xml index f3279ffd8e6..0ef33267a01 100644 --- a/addons/account_asset/views/account_asset_views.xml +++ b/addons/account_asset/views/account_asset_views.xml @@ -65,6 +65,33 @@ + + account.asset.category.kanban + account.asset.category + + + + + + + +
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+ account.asset.category.tree account.asset.category @@ -191,6 +218,43 @@ + + account.asset.asset.kanban + account.asset.asset + + + + + + + + +
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + + +
+
+
+
+
+
+
+
+ account.asset.asset.purchase.tree account.asset.asset @@ -234,6 +298,7 @@ Assets account.asset.asset form + tree,kanban,form [('category_id.type', '=', 'purchase')] @@ -250,7 +315,7 @@ account.asset.category [('type', '=', 'purchase')] form - tree,form + tree,kanban,form {'default_type': 'purchase'} diff --git a/addons/account_budget/views/account_budget_views.xml b/addons/account_budget/views/account_budget_views.xml index 21635db40a4..e27602d94c0 100644 --- a/addons/account_budget/views/account_budget_views.xml +++ b/addons/account_budget/views/account_budget_views.xml @@ -29,6 +29,7 @@ Budgetary Positions account.budget.post form + tree,kanban,form @@ -150,6 +151,46 @@ + + crossovered.budget.kanban + crossovered.budget + + + + + + + + + +
+
+
+ +
+
+ + + +
+
+
+
+ - +
+
+ + + +
+
+
+
+
+
+
+
+ crossovered.budget.search crossovered.budget @@ -169,7 +210,7 @@ Budgets crossovered.budget form - tree,form + tree,kanban,form diff --git a/addons/analytic/views/analytic_account_views.xml b/addons/analytic/views/analytic_account_views.xml index f061e1c5133..83ef8ae2347 100644 --- a/addons/analytic/views/analytic_account_views.xml +++ b/addons/analytic/views/analytic_account_views.xml @@ -136,6 +136,39 @@ + + account.analytic.account.kanban + account.analytic.account + + + + + + + + + + +
+
+ +
+
+
+
Credit
+
Debit
+
Balance
+
+
+
+
+
+
+
+
+
+
+ account.analytic.account.search account.analytic.account @@ -156,7 +189,7 @@ Chart of Analytic Accounts account.analytic.account form - tree,form + tree,kanban,form {'search_default_active':1} @@ -174,7 +207,7 @@ {'search_default_active':1} form - tree,form + tree,kanban,form @@ -241,10 +274,48 @@
+ + account.analytic.line.kanban + account.analytic.line + + + + + + + + + +
+
+
+ +
+
+ +
+
+
+
+ +
+
+ + + +
+
+
+
+
+
+
+
+ Analytic Entries account.analytic.line - tree,form,graph,pivot + tree,kanban,form,graph,pivot form