summaryrefslogtreecommitdiff
path: root/addons/hr_expense/models
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2017-10-26 13:48:07 +0200
committerYannick Tivisse <yti@odoo.com>2017-10-26 16:14:21 +0200
commit7ed9a7fabeb613bf8b2c2980190399e8f9bbaa2b (patch)
treec209b714375213a90f050098a5a51b7a9f275433 /addons/hr_expense/models
parent89dda04c48ca19341abc318aed385d4778ba9e62 (diff)
[REM] web_planner: Remove the module
Purpose ======= User tests have been made by the Product Owners team. It showed that the planners are not used by new users on Odoo due to several reasons (They are too static, too heavy to use,...) Specification ============= Remove the module and its different applications. The onboarding on the business flow will be improvement in the weeks to come.
Diffstat (limited to 'addons/hr_expense/models')
-rw-r--r--addons/hr_expense/models/__init__.py1
-rw-r--r--addons/hr_expense/models/web_planner.py23
2 files changed, 0 insertions, 24 deletions
diff --git a/addons/hr_expense/models/__init__.py b/addons/hr_expense/models/__init__.py
index 846f5603d2e..ef38791009f 100644
--- a/addons/hr_expense/models/__init__.py
+++ b/addons/hr_expense/models/__init__.py
@@ -5,4 +5,3 @@ from . import hr_department
from . import hr_expense
from . import product_template
from . import res_config_settings
-from . import web_planner
diff --git a/addons/hr_expense/models/web_planner.py b/addons/hr_expense/models/web_planner.py
deleted file mode 100644
index c76892529c2..00000000000
--- a/addons/hr_expense/models/web_planner.py
+++ /dev/null
@@ -1,23 +0,0 @@
-# -*- coding: utf-8 -*-
-
-from odoo import api, models
-
-
-class PlannerHrExpense(models.Model):
-
- _inherit = 'web.planner'
-
- @api.model
- def _get_planner_application(self):
- planner = super(PlannerHrExpense, self)._get_planner_application()
- planner.append(['planner_hr_expense', 'Expense Planner'])
- return planner
-
- @api.model
- def _prepare_planner_hr_expense_data(self):
- # sudo is needed to avoid error message when current user's company != sale_department company
- alias_record = self.env.ref('hr_expense.mail_alias_expense')
- return {
- 'alias_domain': alias_record.alias_domain,
- 'alias_name': alias_record.alias_name,
- }