Skip to content

Commit

Permalink
[ADD][8.0] Backport of the 9.0 module.
Browse files Browse the repository at this point in the history
  • Loading branch information
rousseldenis committed Aug 5, 2016
1 parent f66e80c commit a425403
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion partner_identification/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -93,6 +93,7 @@ Contributors
------------

* Antonio Espinosa <[email protected]>
* Denis Roussel <[email protected]>
* Ferdinand Gassauer <[email protected]>
* Gerhard Könighofer <[email protected]>
* Laurent Mignon <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion partner_identification/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions partner_identification/models/res_partner_id_category.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 _

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit a425403

Please sign in to comment.