Ignore:
Timestamp:
1 Jan 2015, 16:16:55 (10 years ago)
Author:
Henrik Bettermann
Message:

Define product validity period in base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/products/interfaces.py

    r12337 r12358  
    2121    IIkobaObject, validate_id,
    2222    ContextualDictSourceFactoryBase)
     23from waeup.ikoba.schema import FormattedDate
    2324from waeup.ikoba.interfaces import MessageFactory as _
    2425from waeup.ikoba.products.productoptions import ProductOptionField
     
    7778        default = [],
    7879        )
     80
     81    valid_from = FormattedDate(
     82        title = _(u'Valid from'),
     83        required = False,
     84        show_year = True,
     85        )
     86
     87    valid_to = FormattedDate(
     88        title = _(u'Valid to'),
     89        required = False,
     90        show_year = True,
     91        )
Note: See TracChangeset for help on using the changeset viewer.