|
@ -3,7 +3,7 @@ |
|
|
# Robin Keunen <robin@coopiteasy.be> |
|
|
# Robin Keunen <robin@coopiteasy.be> |
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). |
|
|
|
|
|
|
|
|
from openerp import models, api, _ |
|
|
|
|
|
|
|
|
from openerp import models, api, _, fields |
|
|
from openerp.exceptions import ValidationError |
|
|
from openerp.exceptions import ValidationError |
|
|
from openerp.tools import config |
|
|
from openerp.tools import config |
|
|
|
|
|
|
|
@ -11,6 +11,8 @@ from openerp.tools import config |
|
|
class ResPartner(models.Model): |
|
|
class ResPartner(models.Model): |
|
|
_inherit = "res.partner" |
|
|
_inherit = "res.partner" |
|
|
|
|
|
|
|
|
|
|
|
email = fields.Char(copy=False) |
|
|
|
|
|
|
|
|
@api.multi |
|
|
@api.multi |
|
|
@api.constrains('email') |
|
|
@api.constrains('email') |
|
|
def _check_email(self): |
|
|
def _check_email(self): |
|
|