You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
460 B

  1. # -*- coding: utf-8 -*-
  2. # © 2014-2015 Grupo ESOC (<http://www.grupoesoc.es>)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. from openerp import _, exceptions
  5. class EmptyNamesError(exceptions.ValidationError):
  6. def __init__(self, record, value=_("No name is set.")):
  7. self.record = record
  8. self._value = value
  9. self.name = _("Error(s) with partner %d's name.") % record.id
  10. self.args = (self.name, value)