import logging
from datetime import datetime,timedelta

from divimon.lib.base import *
from divimon import model

log = logging.getLogger(__name__)

class StocksOutController(ListController):
    table = model.StocksOut
    parent = dict(
            area = dict(
                    table = model.Area,
                    column = ('name'),
                ),
            item = dict(
                    table = model.Item,
                    column = ('name'),
                ),
            dr = dict(
                    table = model.Transaction,
                    column = ('id'),
                ),
        )
