diff --git a/datetime_formatter/README.rst b/datetime_formatter/README.rst index 46674323f..bf5e28101 100644 --- a/datetime_formatter/README.rst +++ b/datetime_formatter/README.rst @@ -37,7 +37,7 @@ If you are a developer, to use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/149/8.0 + :target: https://runbot.odoo-community.org/runbot/149/9.0 Bug Tracker =========== @@ -45,12 +45,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, -help us smashing it by providing a detailed and welcomed `feedback -`_. - +help us smashing it by providing a detailed and welcomed feedback. Credits ======= @@ -59,6 +54,7 @@ Contributors ------------ * Jairo Llopis +* Vicent Cubells Maintainer ---------- diff --git a/datetime_formatter/__init__.py b/datetime_formatter/__init__.py index f2586f5d4..e2c3bb8f2 100644 --- a/datetime_formatter/__init__.py +++ b/datetime_formatter/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # © 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis +# © 2016 Tecnativa, S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/datetime_formatter/__openerp__.py b/datetime_formatter/__openerp__.py index 8e277f5f9..659b241b2 100644 --- a/datetime_formatter/__openerp__.py +++ b/datetime_formatter/__openerp__.py @@ -1,14 +1,16 @@ # -*- coding: utf-8 -*- # © 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis +# © 2016 Tecnativa, S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Date & Time Formatter", "summary": "Helper functions to give correct format to date[time] fields", - "version": "8.0.1.0.0", + "version": "9.0.1.0.0", "category": "Tools", - "website": "https://grupoesoc.es", + "website": "https://tecnativa.com", "author": "Grupo ESOC Ingeniería de Servicios, " + "Tecnativa," "Odoo Community Association (OCA)", "license": "AGPL-3", "installable": True, diff --git a/datetime_formatter/exceptions.py b/datetime_formatter/exceptions.py index 9c6c35063..42b5f2850 100644 --- a/datetime_formatter/exceptions.py +++ b/datetime_formatter/exceptions.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # © 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis +# © 2016 Tecnativa, S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import _, exceptions diff --git a/datetime_formatter/models.py b/datetime_formatter/models.py index 6baa92b41..90816df38 100644 --- a/datetime_formatter/models.py +++ b/datetime_formatter/models.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- # © 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis +# © 2016 Tecnativa, S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from datetime import datetime, timedelta -from openerp import api, exceptions, fields, models +from openerp import api, fields, models from openerp.tools import (DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_TIME_FORMAT) from . import exceptions as ex @@ -53,7 +54,7 @@ class ResLang(models.Model): try: record.ensure_one() - except exceptions.except_orm: + except ValueError: if not failure_safe: raise ex.BestMatchedLanguageNotFoundError(lang) else: diff --git a/datetime_formatter/tests/__init__.py b/datetime_formatter/tests/__init__.py index ead2fd4e0..e1f602d5d 100644 --- a/datetime_formatter/tests/__init__.py +++ b/datetime_formatter/tests/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- # © 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis +# © 2016 Tecnativa, S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import test_best_matcher, test_formatter diff --git a/datetime_formatter/tests/test_best_matcher.py b/datetime_formatter/tests/test_best_matcher.py index e15bd9757..e022dfd18 100644 --- a/datetime_formatter/tests/test_best_matcher.py +++ b/datetime_formatter/tests/test_best_matcher.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # © 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis +# © 2016 Tecnativa, S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp.tests.common import TransactionCase from .. import exceptions diff --git a/datetime_formatter/tests/test_formatter.py b/datetime_formatter/tests/test_formatter.py index 51a4a0fe0..cd3833dca 100644 --- a/datetime_formatter/tests/test_formatter.py +++ b/datetime_formatter/tests/test_formatter.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # © 2015 Grupo ESOC Ingeniería de Servicios, S.L.U. - Jairo Llopis +# © 2016 Tecnativa, S.L. - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). import datetime from random import random