diff --git a/kpi/__init__.py b/kpi/__init__.py
index bdb4c9bb..7988aa3f 100644
--- a/kpi/__init__.py
+++ b/kpi/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2012 - Now Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
diff --git a/kpi/__openerp__.py b/kpi/__manifest__.py
similarity index 94%
rename from kpi/__openerp__.py
rename to kpi/__manifest__.py
index 82e16d81..d14cc89e 100644
--- a/kpi/__openerp__.py
+++ b/kpi/__manifest__.py
@@ -1,10 +1,9 @@
-# -*- coding: utf-8 -*-
# Copyright 2012 - Now Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Key Performance Indicator",
- "version": "9.0.1.1.0",
+ "version": "11.0.1.1.0",
"author": "Savoir-faire Linux,Odoo Community Association (OCA)",
"website": "http://www.savoirfairelinux.com",
"license": "AGPL-3",
diff --git a/kpi/data/kpi.xml b/kpi/data/kpi.xml
index f32a7986..8bf99d95 100644
--- a/kpi/data/kpi.xml
+++ b/kpi/data/kpi.xml
@@ -1,18 +1,16 @@
-
-
-
- Update KPI values
-
- 1
- hours
- -1
-
-
-
-
-
-
+
+
+ Update KPI values
+
+ 1
+ hours
+ -1
+
+
+ code
+ model.update_kpi_value()
+
diff --git a/kpi/models/__init__.py b/kpi/models/__init__.py
index f46e81d9..7da5b448 100644
--- a/kpi/models/__init__.py
+++ b/kpi/models/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# Copyright 2012 - Now Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
diff --git a/kpi/models/kpi.py b/kpi/models/kpi.py
index f4c1a9af..69c4cabb 100644
--- a/kpi/models/kpi.py
+++ b/kpi/models/kpi.py
@@ -1,11 +1,10 @@
-# -*- coding: utf-8 -*-
# Copyright 2012 - Now Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from datetime import datetime, timedelta
-from openerp import fields, models, api
-from openerp.tools.safe_eval import safe_eval
-from openerp.tools import (
+from odoo import fields, models, api
+from odoo.tools.safe_eval import safe_eval
+from odoo.tools import (
DEFAULT_SERVER_DATETIME_FORMAT as DATETIME_FORMAT,
)
import re
diff --git a/kpi/models/kpi_category.py b/kpi/models/kpi_category.py
index 2c34c9c6..3c97e3aa 100644
--- a/kpi/models/kpi_category.py
+++ b/kpi/models/kpi_category.py
@@ -1,8 +1,7 @@
-# -*- coding: utf-8 -*-
# Copyright 2012 - Now Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from openerp import fields, models
+from odoo import fields, models
class KPICategory(models.Model):
diff --git a/kpi/models/kpi_history.py b/kpi/models/kpi_history.py
index 59843156..10fe4f6d 100644
--- a/kpi/models/kpi_history.py
+++ b/kpi/models/kpi_history.py
@@ -1,8 +1,7 @@
-# -*- coding: utf-8 -*-
# Copyright 2012 - Now Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from openerp import fields, models
+from odoo import fields, models
class KPIHistory(models.Model):
diff --git a/kpi/models/kpi_threshold.py b/kpi/models/kpi_threshold.py
index b62a3ffb..dcc6199c 100644
--- a/kpi/models/kpi_threshold.py
+++ b/kpi/models/kpi_threshold.py
@@ -1,8 +1,7 @@
-# -*- coding: utf-8 -*-
# Copyright 2012 - Now Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from openerp import fields, models, api, exceptions, _
+from odoo import fields, models, api, exceptions, _
class KPIThreshold(models.Model):
diff --git a/kpi/models/kpi_threshold_range.py b/kpi/models/kpi_threshold_range.py
index a5b32313..d1b2d6b3 100644
--- a/kpi/models/kpi_threshold_range.py
+++ b/kpi/models/kpi_threshold_range.py
@@ -1,9 +1,8 @@
-# -*- coding: utf-8 -*-
# Copyright 2012 - Now Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from openerp import fields, models, api
-from openerp.tools.safe_eval import safe_eval
+from odoo import fields, models, api
+from odoo.tools.safe_eval import safe_eval
import re
diff --git a/kpi/tests/__init__.py b/kpi/tests/__init__.py
index c9e401ab..b4dd9f28 100644
--- a/kpi/tests/__init__.py
+++ b/kpi/tests/__init__.py
@@ -1,4 +1,3 @@
-# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import test_kpi
diff --git a/kpi/tests/test_kpi.py b/kpi/tests/test_kpi.py
index 4ac3c0b1..c01ca423 100644
--- a/kpi/tests/test_kpi.py
+++ b/kpi/tests/test_kpi.py
@@ -1,7 +1,6 @@
-# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-from openerp.tests.common import TransactionCase
+from odoo.tests.common import TransactionCase
class TestKPI(TransactionCase):
diff --git a/kpi/views/kpi.xml b/kpi/views/kpi.xml
index 73cff3ce..9e5f5394 100644
--- a/kpi/views/kpi.xml
+++ b/kpi/views/kpi.xml
@@ -2,98 +2,97 @@
-
-
-
- kpi.tree
- kpi
-
-
+
+
+ kpi.tree
+ kpi
+
+
+
+
+
+
+
+
+
+
+
+
+ kpi.filter
+ kpi
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
- kpi.filter
- kpi
-
-
+
+ kpi.form
+ kpi
+
+
-
-
-
-
- kpi.form
- kpi
-
-
-
-
-
-
- Key Performance Indicators
- kpi
- form
- tree,form
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+ Key Performance Indicators
+ kpi
+ form
+ tree,form
+
+
+
diff --git a/kpi/views/kpi_category.xml b/kpi/views/kpi_category.xml
index 80c8ac15..bfd3b976 100644
--- a/kpi/views/kpi_category.xml
+++ b/kpi/views/kpi_category.xml
@@ -3,45 +3,39 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
-
-
-
-
-
-
- kpi.category.tree
- kpi.category
-
-
-
-
-
-
-
-
- kpi.category.form
- kpi.category
-
-
-
-
-
-
- Categories
- kpi.category
- form
- tree,form
-
-
-
-
-
+
+
+
+ kpi.category.tree
+ kpi.category
+
+
+
+
+
+
+
+
+ kpi.category.form
+ kpi.category
+
+
+
+
+
+
+ Categories
+ kpi.category
+ form
+ tree,form
+
+
diff --git a/kpi/views/kpi_history.xml b/kpi/views/kpi_history.xml
index b6d0cc17..b302aded 100644
--- a/kpi/views/kpi_history.xml
+++ b/kpi/views/kpi_history.xml
@@ -3,38 +3,36 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
-
-
-
- kpi.history.tree
- kpi.history
-
-
-
-
-
-
-
-
-
-
-
- kpi.history.form
- kpi.history
-
-
-
-
-
+
+
+ kpi.history.tree
+ kpi.history
+
+
+
+
+
+
+
+
+
+
+
+ kpi.history.form
+ kpi.history
+
+
+
+
diff --git a/kpi/views/kpi_threshold.xml b/kpi/views/kpi_threshold.xml
index 4bb2d045..e1808404 100644
--- a/kpi/views/kpi_threshold.xml
+++ b/kpi/views/kpi_threshold.xml
@@ -3,55 +3,51 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
-
-
-
- kpi.threshold.tree
- kpi.threshold
-
-
-
-
-
-
-
-
+
+
+ kpi.threshold.tree
+ kpi.threshold
+
+
+
+
+
+
+
+
-
- kpi.threshold.form
- kpi.threshold
-
-
-
-
+
+ kpi.threshold.form
+ kpi.threshold
+
+
+
+
-
- Thresholds
- kpi.threshold
- form
- tree,form
-
-
-
-
-
+
+ Thresholds
+ kpi.threshold
+ form
+ tree,form
+
+
diff --git a/kpi/views/kpi_threshold_range.xml b/kpi/views/kpi_threshold_range.xml
index 9ca25e46..b230c7e7 100644
--- a/kpi/views/kpi_threshold_range.xml
+++ b/kpi/views/kpi_threshold_range.xml
@@ -3,74 +3,69 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
-
-
-
- kpi.threshold.range.tree
- kpi.threshold.range
-
-
-
-
-
-
-
-
-
-
-
+
+
+ kpi.threshold.range.tree
+ kpi.threshold.range
+
+
+
+
+
+
+
+
+
+
+
-
- kpi.threshold.range.form
- kpi.threshold.range
-
-
-
-
-
-
- Ranges
- kpi.threshold.range
- form
- tree,form
-
-
-
-
-
-
+
+ Ranges
+ kpi.threshold.range
+ form
+ tree,form
+
+
diff --git a/kpi/views/menu.xml b/kpi/views/menu.xml
index 506c926d..79176a93 100644
--- a/kpi/views/menu.xml
+++ b/kpi/views/menu.xml
@@ -3,46 +3,44 @@
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
-
-
+
-
+
-
+
-
+
-
+
-
-
+