|
|
@ -1,7 +1,7 @@ |
|
|
|
# -*- coding: utf-8 -*- |
|
|
|
# Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> |
|
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
|
|
|
from odoo import _, api, fields, models |
|
|
|
from odoo import api, fields, models |
|
|
|
import logging |
|
|
|
|
|
|
|
|
|
|
@ -30,9 +30,4 @@ class ResPartner(models.Model): |
|
|
|
@api.one |
|
|
|
def _birthdate_inverse(self): |
|
|
|
"""Convert the old Char date to the new Date format.""" |
|
|
|
try: |
|
|
|
self.birthdate_date = self.birthdate |
|
|
|
except ValueError: |
|
|
|
_logger.warn( |
|
|
|
_("Could not convert '{0.birthdate}' to date in " |
|
|
|
"res.partner {0.id} ({0.name}). Skipping.").format(self)) |
|
|
|
self.birthdate_date = self.birthdate |