コード例 #1
0
ファイル: quotedialog.py プロジェクト: romaia/stoq
    def __init__(self, item):
        AttributeForwarder.__init__(self, item)

        self.description = item.sellable.get_description()
        self.quantity = item.quantity
        self.cost = item.cost
        self.last_cost = self._get_last_cost(item)
        self.average_cost = self._get_average_cost(item)
コード例 #2
0
ファイル: quotedialog.py プロジェクト: pauloscarin1972/stoq
    def __init__(self, item):
        AttributeForwarder.__init__(self, item)

        self.description = item.sellable.get_description()
        self.quantity = item.quantity
        self.cost = item.cost
        self.last_cost = self._get_last_cost(item)
        self.average_cost = self._get_average_cost(item)
コード例 #3
0
ファイル: individualtemplate.py プロジェクト: romaia/stoq
    def __init__(self, target, store):
        AttributeForwarder.__init__(self, target)
        self.store = store
        if not target.birth_location:
            target.birth_location = CityLocation.get_default(store)

        self.city = target.birth_location.city
        self.state = target.birth_location.state
        self.country = target.birth_location.country
コード例 #4
0
ファイル: addressslave.py プロジェクト: 5l1v3r1/stoq-1
 def __init__(self, target, store):
     """
     :param target: an address
     :param store: a store
     """
     AttributeForwarder.__init__(self, target)
     self.store = store
     self.city = target.city_location.city
     self.state = target.city_location.state
     self.country = target.city_location.country
コード例 #5
0
ファイル: individualtemplate.py プロジェクト: victornovy/stoq
    def __init__(self, target, store):
        """
        :param model: an Individial
        :param store: a store
        """
        AttributeForwarder.__init__(self, target)
        self.store = store
        if not target.birth_location:
            target.birth_location = CityLocation.get_default(store)

        self.city = target.birth_location.city
        self.state = target.birth_location.state
        self.country = target.birth_location.country
コード例 #6
0
    def __init__(self, target, store):
        """
        :param model: an Individial
        :param store: a store
        """
        AttributeForwarder.__init__(self, target)
        self.store = store
        if not target.birth_location:
            target.birth_location = CityLocation.get_default(store)

        self.city = target.birth_location.city
        self.state = target.birth_location.state
        self.country = target.birth_location.country
コード例 #7
0
    def __init__(self, target, store, ui_form_name=None):
        """
        :param target: an Individial
        :param store: a store
        """
        # Even though we dont use ui_form_name anywhere in this class, its setup
        # is made in a way we need this argument. see persontemplate
        # attach_model_slave method
        AttributeForwarder.__init__(self, target)
        self.store = store
        if not target.birth_location:
            target.birth_location = CityLocation.get_default(store)

        self.city = target.birth_location.city
        self.state = target.birth_location.state
        self.country = target.birth_location.country
コード例 #8
0
    def __init__(self, target, store, ui_form_name=None):
        """
        :param target: an Individial
        :param store: a store
        """
        # Even though we dont use ui_form_name anywhere in this class, its setup
        # is made in a way we need this argument. see persontemplate
        # attach_model_slave method
        AttributeForwarder.__init__(self, target)
        self.store = store
        if not target.birth_location:
            target.birth_location = CityLocation.get_default(store)

        self.city = target.birth_location.city
        self.state = target.birth_location.state
        self.country = target.birth_location.country
コード例 #9
0
ファイル: addressslave.py プロジェクト: romaia/stoq
 def __init__(self, target, store):
     AttributeForwarder.__init__(self, target)
     self.store = store
     self.city = target.city_location.city
     self.state = target.city_location.state
     self.country = target.city_location.country