Ignore:
Timestamp:
1 Jan 2015, 08:29:24 (10 years ago)
Author:
Henrik Bettermann
Message:

Add tuples for customization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/ikobacustom.skeleton/trunk/src/ikobacustom/skeleton/customers/utils.py

    r12355 r12357  
    2020
    2121from copy import deepcopy
    22 from waeup.ikoba.customers.utils import CustomersUtils
     22from waeup.ikoba.customers.utils import (
     23    CustomersUtils,
     24    STARTED, CREATED, REQUESTED, APPROVED,
     25    SUBMITTED, VERIFIED, REJECTED,
     26    EXPIRED)
    2327from ikobacustom.skeleton.interfaces import MessageFactory as _
    2428
     
    2731    """
    2832
     33    #: A prefix used when generating new customer ids. Each customer id will
     34    #: start with this string. The default is 'K'.
     35    CUSTOMER_ID_PREFIX = u'K'
     36
     37    DOCMANAGE_CUSTOMER_STATES = (REQUESTED, APPROVED,)
     38
     39    DOCMANAGE_DOCUMENT_STATES = (CREATED,)
     40
     41    CONMANAGE_CUSTOMER_STATES = deepcopy(DOCMANAGE_CUSTOMER_STATES)
     42
     43    CONMANAGE_CONTRACT_STATES = (CREATED,)
    2944
    3045    DOCTYPES_DICT = {
    31         'CustomerSampleDocument': _('Sample Document'),
    32         'CustomerPDFDocument': _('PDF Document'),
     46        #'CustomerSampleDocument': _('Sample Document'),
     47        #'CustomerPDFDocument': _('PDF Document'),
    3348
    3449        'SkeletonCustomerDocument': _('Skeleton Document'),
     
    3651
    3752    CONTYPES_DICT = {
    38         'SampleContract': _('Sample Contract'),
     53        #'SampleContract': _('Sample Contract'),
    3954
    4055        'SkeletonContract': _('Skeleton Contract'),
     
    4459
    4560    SELECTABLE_CONTYPES_DICT = deepcopy(CONTYPES_DICT)
     61
     62    EXPORTER_NAMES = (
     63        'customers',
     64        'skeletoncustomerdocuments',
     65        'skeletoncontracts')
Note: See TracChangeset for help on using the changeset viewer.