Browse Source

[ADD][8.0] Backport of the 9.0 module.

pull/297/head
Denis Roussel 9 years ago
parent
commit
a42540381d
  1. 3
      partner_identification/README.rst
  2. 2
      partner_identification/__openerp__.py
  3. 4
      partner_identification/models/res_partner_id_category.py

3
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 <antonioea@antiun.com>
* Denis Roussel <denis.roussel@acsone.eu>
* Ferdinand Gassauer <office@chrcar.at>
* Gerhard Könighofer <gerhard.koenighofer@swing-system.com>
* Laurent Mignon <laurent.mignon@acsone.eu>

2
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',

4
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 @@ class ResPartnerIdCategory(models.Model):
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):

Loading…
Cancel
Save