Follow-up Comment #3, bug #43048 (project health):

The field activation_date, require date type in this model:

    activation_date = fields.Date(
        'Activation date', help='Date of activation of the party')


But with this simple test, you can see that fail, default method.

line 24 health.py file:
>>> from datetime import datetime, timedelta

line 300 health.py file:
>>> datetime.today()
datetime.datetime(2014, 8, 24, 10, 18, 28, 424916)


    @staticmethod
    def default_activation_date():
        return datetime.today()

The problem is that datetime.today() return datetime not date as the field
expect.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?43048>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


Reply via email to