From 36a2bfb9cfafc1642b65b783f6a63c0dbda11dd0 Mon Sep 17 00:00:00 2001 From: Kirti Choudhary Date: Wed, 14 Jun 2017 14:42:58 +0530 Subject: [PATCH] [IMP] *: add and improve kanban views for mobile This commit improves readability in kanban views. The default view in mobile is kanban and many of them needed to be improved. task-33438 closes 17853 --- .../views/account_journal_dashboard_view.xml | 1 + addons/account/views/account_payment_view.xml | 9 +- addons/account/views/account_view.xml | 58 ++++++++- .../analytic/views/analytic_account_views.xml | 13 +- .../fleet/views/fleet_vehicle_cost_views.xml | 122 +++++++++++++++++- addons/fleet/views/fleet_vehicle_views.xml | 27 +++- addons/hr/views/hr_views.xml | 26 ++++ .../hr_holidays/views/hr_holidays_views.xml | 56 ++++++-- addons/hr_payroll/views/hr_payslip_views.xml | 70 +++++++++- .../hr_payroll/views/hr_salary_rule_views.xml | 79 +++++++++++- addons/hr_recruitment/views/hr_job_views.xml | 20 +++ .../views/hr_recruitment_views.xml | 27 +--- addons/lunch/views/lunch_views.xml | 3 + .../maintenance/views/maintenance_views.xml | 44 ++++++- .../mass_mailing/views/mass_mailing_views.xml | 4 +- addons/mrp/views/mrp_message_views.xml | 13 +- addons/mrp/views/mrp_workcenter_views.xml | 37 +++++- addons/mrp_repair/views/mrp_repair_views.xml | 2 +- addons/payment/views/payment_views.xml | 33 ++++- addons/point_of_sale/views/pos_order_view.xml | 13 +- .../point_of_sale/views/pos_session_view.xml | 2 +- .../procurement/views/procurement_views.xml | 11 +- .../product/views/product_pricelist_views.xml | 4 +- addons/project/static/src/js/project.js | 2 +- addons/project/views/project_views.xml | 40 +++++- .../views/purchase_requisition_views.xml | 15 ++- .../views/report_intrastat_views.xml | 13 +- addons/sale/views/sale_views.xml | 13 ++ addons/sales_team/static/src/js/sales_team.js | 23 ---- addons/sales_team/views/crm_team_views.xml | 34 +++-- addons/stock/views/stock_move_views.xml | 53 ++++++-- .../views/event_track_views.xml | 3 - odoo/addons/base/res/res_currency_view.xml | 6 + odoo/addons/base/res/res_users_view.xml | 1 - 34 files changed, 716 insertions(+), 161 deletions(-) delete mode 100644 addons/sales_team/static/src/js/sales_team.js diff --git a/addons/account/views/account_journal_dashboard_view.xml b/addons/account/views/account_journal_dashboard_view.xml index 210d1f1d106..0c910e12251 100644 --- a/addons/account/views/account_journal_dashboard_view.xml +++ b/addons/account/views/account_journal_dashboard_view.xml @@ -318,6 +318,7 @@ account.journal form kanban,form + menu {'search_default_dashboard':1} [('belongs_to_company', '=', True)] diff --git a/addons/account/views/account_payment_view.xml b/addons/account/views/account_payment_view.xml index e012baa6502..3ad1c3ce6db 100644 --- a/addons/account/views/account_payment_view.xml +++ b/addons/account/views/account_payment_view.xml @@ -61,11 +61,16 @@
-
+
+
+
- + +
+
+
diff --git a/addons/account/views/account_view.xml b/addons/account/views/account_view.xml index eedd5c95e5c..25c43ed2bb4 100644 --- a/addons/account/views/account_view.xml +++ b/addons/account/views/account_view.xml @@ -223,6 +223,29 @@ + + account.journal.kanban + account.journal + 1 + + + + +
+
+
+ +
+
+ +
+
+
+
+
+
+
+
account.journal.search account.journal @@ -339,6 +362,26 @@ + + account.bank.journal.kanban + account.journal + 10 + + + + +
+
+
+ +
+
+
+
+
+
+
+
account.bank.journal.form account.journal @@ -388,6 +431,7 @@ tree,kanban,form [('type', '=', 'bank')] {'default_type': 'bank'} @@ -404,6 +448,10 @@ account.journal form tree,kanban,form +

Click to add a journal. @@ -1350,9 +1398,15 @@

-
+
+
+
+
+ + +
@@ -1613,7 +1667,7 @@
-
Note:
+
diff --git a/addons/analytic/views/analytic_account_views.xml b/addons/analytic/views/analytic_account_views.xml index a0eff16fbfa..179d6f78650 100644 --- a/addons/analytic/views/analytic_account_views.xml +++ b/addons/analytic/views/analytic_account_views.xml @@ -151,8 +151,6 @@ - - @@ -162,12 +160,11 @@

-
Credit
-
Debit
-
Balance
-
-
-
+
+ + Balance: + +
diff --git a/addons/fleet/views/fleet_vehicle_cost_views.xml b/addons/fleet/views/fleet_vehicle_cost_views.xml index 9b9d8b360b4..26429043e84 100644 --- a/addons/fleet/views/fleet_vehicle_cost_views.xml +++ b/addons/fleet/views/fleet_vehicle_cost_views.xml @@ -14,6 +14,31 @@ + + fleet.vehicle.cost.kanban + fleet.vehicle.cost + + + + +
+
+ + + + +
+
+ + +
+
+
+
+
+
+
+ fleet.vehicle.cost.pivot fleet.vehicle.cost @@ -126,7 +151,7 @@ Vehicle Costs fleet.vehicle.cost form - tree,form,graph + tree,kanban,form,graph {"search_default_parent_false" : True, "search_default_groupby_vehicle_id" : True,}

@@ -261,6 +286,36 @@ + + fleet.vehicle.log.contract.kanban + fleet.vehicle.log.contract + + + + +

+
+ + + + + + +
+
+ - +
+
+ + +
+
+ + + +
+
+ fleet.vehicle.log.contract.graph fleet.vehicle.log.contract @@ -293,7 +348,7 @@ Vehicles Contracts fleet.vehicle.log.contract form - tree,form,graph + tree,kanban,form,graph {'search_default_open': 1}

@@ -367,6 +422,34 @@ + + fleet.vehicle.log.fuel.kanban + fleet.vehicle.log.fuel + + + + +

+
+ + + + +
+
+ +
+
+ Liter + +
+
+ + + +
+
+ fleet.vehicle.log.fuel.search fleet.vehicle.log.fuel @@ -399,7 +482,7 @@ Vehicles Fuel Logs fleet.vehicle.log.fuel form - tree,form,graph + tree,kanban,form,graph {"search_default_groupby_vehicle" : True}

@@ -475,6 +558,37 @@ + + fleet.vehicle.log.services.kanban + fleet.vehicle.log.services + + + + +

+
+ + + + +
+
+ +
+
+ +
+
+ + +
+
+ + + +
+
+ fleet.vehicle.log.services.graph fleet.vehicle.log.services @@ -502,7 +616,7 @@ Vehicles Services Logs fleet.vehicle.log.services form - tree,form,graph + tree,kanban,form,graph

Click to create a new service entry. diff --git a/addons/fleet/views/fleet_vehicle_views.xml b/addons/fleet/views/fleet_vehicle_views.xml index 34f2e274f20..93fcc220243 100644 --- a/addons/fleet/views/fleet_vehicle_views.xml +++ b/addons/fleet/views/fleet_vehicle_views.xml @@ -275,6 +275,31 @@ + + fleet.vehicle.odometer.kanban + fleet.vehicle.odometer + + + + +

+
+ + + + +
+
+ + Km +
+
+ + + +
+
+ fleet.vehicle.odometer.search fleet.vehicle.odometer @@ -306,7 +331,7 @@ Vehicles Odometer fleet.vehicle.odometer form - tree,form,graph + tree,kanban,form,graph {"search_default_groupby_vehicle" : True}

diff --git a/addons/hr/views/hr_views.xml b/addons/hr/views/hr_views.xml index 39f46783147..b683726f0dd 100644 --- a/addons/hr/views/hr_views.xml +++ b/addons/hr/views/hr_views.xml @@ -386,6 +386,32 @@ + + hr.job.kanban + hr.job + + + + +

+
+ +
+
+ +
+
+ Vacancies : + + +
+
+ + + +
+
+ hr.job.search hr.job diff --git a/addons/hr_holidays/views/hr_holidays_views.xml b/addons/hr_holidays/views/hr_holidays_views.xml index 5ae5b14191e..c0a1d500d9e 100644 --- a/addons/hr_holidays/views/hr_holidays_views.xml +++ b/addons/hr_holidays/views/hr_holidays_views.xml @@ -207,21 +207,27 @@
-
- +
+
- - -
- +
+
+
+
+ +
-
- +
+
+ +
- - - - +
+
+ + + +

@@ -230,7 +236,7 @@ -
- days + days
@@ -647,6 +653,28 @@ + + hr.holidays.status.kanban + hr.holidays.status + + + + +
+
+ +
+
+ Max Leaves: + Leaves Taken: +
+
+
+
+
+
+
+ hr.holidays.status.normal.tree hr.holidays.status @@ -675,7 +703,7 @@ ir.actions.act_window hr.holidays.status form - tree,form + tree,kanban,form diff --git a/addons/hr_payroll/views/hr_payslip_views.xml b/addons/hr_payroll/views/hr_payslip_views.xml index 74cc888141c..aa38c543ea5 100644 --- a/addons/hr_payroll/views/hr_payslip_views.xml +++ b/addons/hr_payroll/views/hr_payslip_views.xml @@ -83,6 +83,39 @@ + + hr.payslip.kanban + hr.payslip + + + + +
+
+
+ +
+
+ + + +
+
+ + - + +
+
+ +
+
+
+
+
+
+
+
+ Employee Payslips hr.payslip form - + tree,kanban,form @@ -295,6 +328,39 @@ + + hr.payslip.run.kanban + hr.payslip.run + + + + +
+
+
+ +
+
+ + + +
+
+ + - + + + + +
+
+
+
+
+
+
+
+ hr.payslip.run.form hr.payslip.run @@ -329,7 +395,7 @@ Payslips Batches hr.payslip.run form - + tree,kanban,form diff --git a/addons/hr_payroll/views/hr_salary_rule_views.xml b/addons/hr_payroll/views/hr_salary_rule_views.xml index b69efd1f14f..ebe871119ef 100644 --- a/addons/hr_payroll/views/hr_salary_rule_views.xml +++ b/addons/hr_payroll/views/hr_salary_rule_views.xml @@ -14,6 +14,32 @@
+ + + hr.payroll.structure.kanban + hr.payroll.structure + + + + +
+
+
+ +
+
+
+
+ Code: +
+
+
+
+
+
+
+
+ hr.payroll.structure.tree hr.payroll.structure @@ -69,7 +95,7 @@ Salary Structures hr.payroll.structure form - + tree,kanban,form + + hr.contribution.register.kanban + hr.contribution.register + + + + +
+
+
+ +
+
+
+
+
+
+
+
hr.contribution.register.search hr.contribution.register @@ -215,6 +260,7 @@ Contribution Registers hr.contribution.register form + tree,kanban,form

Click to add a new contribution register. @@ -224,7 +270,6 @@ estate or anyone that collect or inject money on payslips.

-
+ + hr.salary.rule.kanban + hr.salary.rule + + + + +
+
+
+ +
+
+ +
+
+
+
+ Code: +
+
+
+
+
+
+
+
+ hr.salary.rule.tree hr.salary.rule @@ -340,7 +413,7 @@ Salary Rules hr.salary.rule form - + tree,kanban,form [('parent_rule_id','=',False)] diff --git a/addons/hr_recruitment/views/hr_job_views.xml b/addons/hr_recruitment/views/hr_job_views.xml index 03374409c42..0a63565ff56 100644 --- a/addons/hr_recruitment/views/hr_job_views.xml +++ b/addons/hr_recruitment/views/hr_job_views.xml @@ -116,4 +116,24 @@ + + + + Job Positions + hr.job + form + kanban,form + + {} + +

+ Click here to create a new job position. +

+ Once a job position is created, you can track related applications + and manage the recruitment process. +

+
+
+ + diff --git a/addons/hr_recruitment/views/hr_recruitment_views.xml b/addons/hr_recruitment/views/hr_recruitment_views.xml index bab63ca0d31..939abf62e56 100644 --- a/addons/hr_recruitment/views/hr_recruitment_views.xml +++ b/addons/hr_recruitment/views/hr_recruitment_views.xml @@ -485,29 +485,16 @@ - - - Job Positions - hr.job - form - kanban,form - {} - -

- Click here to create a new job position. -

- Once a job position is created, you can track related applications - and manage the recruitment process. -

-
-
- Job Positions hr.job form tree,kanban,form + {'search_default_in_recruitment': 1}

@@ -586,7 +573,6 @@ sequence="100"/> - + hr.recruitment.stage.kanban hr.recruitment.stage @@ -671,10 +658,10 @@

- +
- Folded in Recruitment Pipe: + Folded in Recruitment Pipe:
diff --git a/addons/lunch/views/lunch_views.xml b/addons/lunch/views/lunch_views.xml index f0e8ac5a65e..cc47fcc2acf 100644 --- a/addons/lunch/views/lunch_views.xml +++ b/addons/lunch/views/lunch_views.xml @@ -534,6 +534,9 @@
+
+ +
diff --git a/addons/maintenance/views/maintenance_views.xml b/addons/maintenance/views/maintenance_views.xml index da979db5952..d5425e91a6d 100644 --- a/addons/maintenance/views/maintenance_views.xml +++ b/addons/maintenance/views/maintenance_views.xml @@ -680,14 +680,30 @@ + + equipment.stage.kanban + maintenance.stage + + + + +
+
+ +
+
+
+
+
+
+
Stages maintenance.stage - tree + tree,kanban,form form -

Click to add a stage in the maintenance request. @@ -728,6 +744,24 @@ + + maintenance.team.kanban + maintenance.team + + + + +

+
+ +
+
+ + + +
+
+ maintenance.team.kanban maintenance.team @@ -858,7 +892,10 @@ Teams maintenance.team form - tree,form + tree,kanban,form +

Click to add a team in the maintenance request. @@ -871,6 +908,7 @@ maintenance.team kanban,form form +

Click to add a stage in the maintenance request. diff --git a/addons/mass_mailing/views/mass_mailing_views.xml b/addons/mass_mailing/views/mass_mailing_views.xml index 3b2e77ec333..b5e6764317d 100644 --- a/addons/mass_mailing/views/mass_mailing_views.xml +++ b/addons/mass_mailing/views/mass_mailing_views.xml @@ -94,9 +94,7 @@

- - - +
diff --git a/addons/mrp/views/mrp_message_views.xml b/addons/mrp/views/mrp_message_views.xml index 1a4cc84f976..e5b353a81a8 100644 --- a/addons/mrp/views/mrp_message_views.xml +++ b/addons/mrp/views/mrp_message_views.xml @@ -95,18 +95,17 @@
-
- +
+ Product:

-
+
- Product: +
- Valid until:
-
+
@@ -150,4 +149,4 @@ action="mrp_message_action_main" groups="group_mrp_routings" sequence="99"/> - \ No newline at end of file + diff --git a/addons/mrp/views/mrp_workcenter_views.xml b/addons/mrp/views/mrp_workcenter_views.xml index 0fac28477f3..74ce4dc013f 100644 --- a/addons/mrp/views/mrp_workcenter_views.xml +++ b/addons/mrp/views/mrp_workcenter_views.xml @@ -45,6 +45,29 @@ + + mrp.workcenter.kanban + mrp.workcenter + + + + +
+
+
+ +
+
+ Code +
+
+
+
+
+
+
+
+ mrp.workcenter.productivity.graph mrp.workcenter.productivity @@ -349,6 +372,10 @@ tree,kanban,form form +

@@ -367,6 +394,7 @@ mrp.workcenter form kanban,form +

@@ -436,13 +464,16 @@

Reason: - - -
Effectiveness Category:
+
+ Is a Blocking Reason? + + + +
diff --git a/addons/mrp_repair/views/mrp_repair_views.xml b/addons/mrp_repair/views/mrp_repair_views.xml index 53cb9e7843a..bbe2ffe63b8 100644 --- a/addons/mrp_repair/views/mrp_repair_views.xml +++ b/addons/mrp_repair/views/mrp_repair_views.xml @@ -207,7 +207,7 @@
- +
diff --git a/addons/payment/views/payment_views.xml b/addons/payment/views/payment_views.xml index 29ab44d606b..afe4913ebe8 100644 --- a/addons/payment/views/payment_views.xml +++ b/addons/payment/views/payment_views.xml @@ -279,6 +279,37 @@ + + payment.transaction.kanban + payment.transaction + + + + +
+
+
+ +
+
+ +
+
+ +
+
+ + + +
+
+
+
+
+
+
+
+ payment.transaction.search payment.transaction @@ -296,7 +327,7 @@ Payment Transactions payment.transaction form - tree,form + tree,kanban,form + +
@@ -120,12 +122,19 @@
- + + +
+
+
+ +
+
- +
diff --git a/addons/point_of_sale/views/pos_session_view.xml b/addons/point_of_sale/views/pos_session_view.xml index dbfe5424b66..f610fbd683c 100644 --- a/addons/point_of_sale/views/pos_session_view.xml +++ b/addons/point_of_sale/views/pos_session_view.xml @@ -171,7 +171,7 @@
- Start Date: +
diff --git a/addons/procurement/views/procurement_views.xml b/addons/procurement/views/procurement_views.xml index 7d546c05dd2..7f58d95e067 100644 --- a/addons/procurement/views/procurement_views.xml +++ b/addons/procurement/views/procurement_views.xml @@ -47,16 +47,7 @@
-
-
-
- -
-
- - - -
+
diff --git a/addons/product/views/product_pricelist_views.xml b/addons/product/views/product_pricelist_views.xml index f72ad16bba9..12089aa9fae 100644 --- a/addons/product/views/product_pricelist_views.xml +++ b/addons/product/views/product_pricelist_views.xml @@ -112,12 +112,10 @@ product.pricelist - -
-
+
diff --git a/addons/project/static/src/js/project.js b/addons/project/static/src/js/project.js index 95e1cc953a1..a13c451f44e 100644 --- a/addons/project/static/src/js/project.js +++ b/addons/project/static/src/js/project.js @@ -18,7 +18,7 @@ KanbanRecord.include({ * @private */ _openRecord: function () { - if (this.modelName === 'project.project') { + if (this.modelName === 'project.project' && this.$(".o_project_kanban_boxes a").length) { this.$('.o_project_kanban_boxes a').first().click(); } else { this._super.apply(this, arguments); diff --git a/addons/project/views/project_views.xml b/addons/project/views/project_views.xml index 7712c8bc1c7..4ecc31ae062 100644 --- a/addons/project/views/project_views.xml +++ b/addons/project/views/project_views.xml @@ -208,6 +208,37 @@ + + project.project.kanban + project.project + + + + + +
+
+
+ +
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+ project.project.view.form.simplified project.project @@ -326,6 +357,7 @@ form [] kanban,form + main @@ -342,6 +374,9 @@ form [] tree,kanban,form + {} @@ -775,12 +810,9 @@
-
+
-
- -

diff --git a/addons/purchase_requisition/views/purchase_requisition_views.xml b/addons/purchase_requisition/views/purchase_requisition_views.xml index c71ff071332..830a825d5d4 100644 --- a/addons/purchase_requisition/views/purchase_requisition_views.xml +++ b/addons/purchase_requisition/views/purchase_requisition_views.xml @@ -27,10 +27,12 @@
-
+
-
+
+
+
@@ -243,10 +245,15 @@
-
+
-
+
+
+
+ +
+
diff --git a/addons/report_intrastat/views/report_intrastat_views.xml b/addons/report_intrastat/views/report_intrastat_views.xml index 69c8e186a06..f9c0bc004cb 100644 --- a/addons/report_intrastat/views/report_intrastat_views.xml +++ b/addons/report_intrastat/views/report_intrastat_views.xml @@ -107,23 +107,12 @@
-
-
Year
-
Month
-
Country Code
-
-
-
-

-
- -
-
+
diff --git a/addons/sale/views/sale_views.xml b/addons/sale/views/sale_views.xml index eafe4222161..7d6396716a5 100644 --- a/addons/sale/views/sale_views.xml +++ b/addons/sale/views/sale_views.xml @@ -810,6 +810,19 @@ + + product.pricelist.kanban.inherit.product + product.pricelist + + + + + + + + + + Sales Orders diff --git a/addons/sales_team/static/src/js/sales_team.js b/addons/sales_team/static/src/js/sales_team.js deleted file mode 100644 index c92119f0da9..00000000000 --- a/addons/sales_team/static/src/js/sales_team.js +++ /dev/null @@ -1,23 +0,0 @@ -odoo.define('sales_team.update_kanban', function (require) { -"use strict"; - -var KanbanRecord = require('web.KanbanRecord'); - -KanbanRecord.include({ - //-------------------------------------------------------------------------- - // Private - //-------------------------------------------------------------------------- - - /** - * @override - * @private - */ - _openRecord: function () { - if (this.modelName === 'crm.team') { - this.$('.oe_kanban_crm_salesteams_list a').first().click(); - } else { - this._super.apply(this, arguments); - } - }, -}); -}); diff --git a/addons/sales_team/views/crm_team_views.xml b/addons/sales_team/views/crm_team_views.xml index 2a854dace0d..fbff36f7052 100644 --- a/addons/sales_team/views/crm_team_views.xml +++ b/addons/sales_team/views/crm_team_views.xml @@ -120,18 +120,27 @@ - - Sales Channels - crm.team - form - - -

- Click here to define a new sales channel. -

- Use sales channels to organize your sales departments. - Each channel will work with a separate pipeline. -

+ + + crm.team.kanban + crm.team + + + + +
+
+
+ +
+
+ +
+
+
+
+
+
@@ -139,7 +148,6 @@ diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml index ff7f946050d..dbe538aafce 100644 --- a/addons/stock/views/stock_move_views.xml +++ b/addons/stock/views/stock_move_views.xml @@ -93,17 +93,12 @@
-
- -
-
- -
- - - + +
+
+
@@ -440,6 +435,42 @@ + + stock.move.kanban2 + stock.move + + + + +
+
+
+ +
+
+ + + +
+
+
+
+ +
+
+ + + +
+
+
+
+
+
+
+
+ stock.move.tree3 @@ -501,7 +532,9 @@ form tree,kanban,form - + {'product_receive': True, 'search_default_future': True}

diff --git a/addons/website_event_track/views/event_track_views.xml b/addons/website_event_track/views/event_track_views.xml index 71ee16040b4..c54ba3bfa6b 100644 --- a/addons/website_event_track/views/event_track_views.xml +++ b/addons/website_event_track/views/event_track_views.xml @@ -417,9 +417,6 @@

- - -
diff --git a/odoo/addons/base/res/res_currency_view.xml b/odoo/addons/base/res/res_currency_view.xml index db0459dd45a..9e9cd6bfbd8 100644 --- a/odoo/addons/base/res/res_currency_view.xml +++ b/odoo/addons/base/res/res_currency_view.xml @@ -112,6 +112,12 @@
+
+
+ Current Rate: + +
+
diff --git a/odoo/addons/base/res/res_users_view.xml b/odoo/addons/base/res/res_users_view.xml index d2795da23b7..172f03e6ecf 100644 --- a/odoo/addons/base/res/res_users_view.xml +++ b/odoo/addons/base/res/res_users_view.xml @@ -258,7 +258,6 @@
  • -