diff --git a/partner_identification/README.rst b/partner_identification/README.rst index 680628d1f8c..6868ff14df1 100644 --- a/partner_identification/README.rst +++ b/partner_identification/README.rst @@ -63,7 +63,7 @@ Notes: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/134/9.0 + :target: https://runbot.odoo-community.org/runbot/ Known issues / Roadmap @@ -93,6 +93,7 @@ Contributors ------------ * Antonio Espinosa +* Denis Roussel * Ferdinand Gassauer * Gerhard Könighofer * Laurent Mignon diff --git a/partner_identification/__openerp__.py b/partner_identification/__openerp__.py index 11c0f0d9e46..6c1c7ac431c 100644 --- a/partner_identification/__openerp__.py +++ b/partner_identification/__openerp__.py @@ -11,7 +11,7 @@ { 'name': 'Partner Identification Numbers', 'category': 'Customer Relationship Management', - 'version': '9.0.1.0.0', + 'version': '8.0.1.0.0', 'data': [ 'views/res_partner_id_category_view.xml', 'views/res_partner_id_number_view.xml', diff --git a/partner_identification/models/res_partner_id_category.py b/partner_identification/models/res_partner_id_category.py index 71508512e27..11dbf35540b 100644 --- a/partner_identification/models/res_partner_id_category.py +++ b/partner_identification/models/res_partner_id_category.py @@ -11,7 +11,7 @@ from openerp import api, models, fields -from openerp.exceptions import ValidationError, UserError +from openerp.exceptions import ValidationError, Warning from openerp.tools.safe_eval import safe_eval from openerp.tools.translate import _ @@ -62,7 +62,7 @@ def validate_id_number(self, id_number): mode='exec', nocopy=True) except Exception as e: - raise UserError( + raise Warning( _('Error when evaluating the id_category validation code:' ':\n %s \n(%s)') % (self.name, e)) if eval_context.get('failed', False):