Beispiel #1
0
    def __init__(self, store, product, visual_mode=False):
        self._product = product
        BaseRelationshipEditorSlave.__init__(self, store, visual_mode=visual_mode)

        suggested = sysparam(store).SUGGESTED_SUPPLIER
        if suggested is not None:
            self.target_combo.select(suggested)
Beispiel #2
0
    def __init__(self, store, product, visual_mode=False):
        self._product = product
        BaseRelationshipEditorSlave.__init__(self, store, visual_mode=visual_mode)

        suggested = sysparam.get_object(store, 'SUGGESTED_SUPPLIER')
        if suggested is not None:
            self.target_combo.select(suggested)

        if self._product.parent is not None:
            self._disable_child_widgets()
Beispiel #3
0
    def __init__(self, store, product, visual_mode=False):
        self._product = product
        BaseRelationshipEditorSlave.__init__(self, store, visual_mode=visual_mode)

        suggested = sysparam.get_object(store, 'SUGGESTED_SUPPLIER')
        if suggested is not None:
            self.target_combo.select(suggested)

        if self._product.parent is not None:
            self._disable_child_widgets()
Beispiel #4
0
 def __init__(self, store, sellable, visual_mode=False):
     self._sellable = sellable
     BaseRelationshipEditorSlave.__init__(self, store, visual_mode=visual_mode)
    def __init__(self, store, user):
        self._user = user
        self._store = store
        BaseRelationshipEditorSlave.__init__(self, self._store)

        self.relations_list.edit_button.hide()
Beispiel #6
0
 def __init__(self, store, sellable, visual_mode=False):
     self._sellable = sellable
     BaseRelationshipEditorSlave.__init__(self,
                                          store,
                                          visual_mode=visual_mode)
    def __init__(self, store, user):
        self._user = user
        self._store = store
        BaseRelationshipEditorSlave.__init__(self, self._store)

        self.relations_list.edit_button.hide()