Esempio n. 1
0
 def setup_slaves(self):
     from stoqlib.gui.slaves.productslave import ProductDetailsSlave
     self.details_slave = ProductDetailsSlave(self.store,
                                              self.model.sellable,
                                              self.db_form,
                                              self.visual_mode)
     self.add_extra_tab(_(u'Details'), self.details_slave)
Esempio n. 2
0
 def setup_slaves(self):
     from stoqlib.gui.slaves.productslave import ProductDetailsSlave
     details_slave = ProductDetailsSlave(self.store, self.model.sellable)
     details_slave.hide_stock_details()
     self.attach_slave('place_holder', details_slave)