def show_external_product_window(self, model, path):
     product_id = model[path][0]
     if self.product_window == None or not self.product_window.exists:
         import products
         self.product_window = products.ProductsGUI(self.main)
         self.product_window.builder.get_object('paned1').set_position(0)
         self.product_window.builder.get_object('window').resize(600, 600)
     self.product_window.select_product(product_id)
Example #2
0
 def add_product(self, widget):
     products.ProductsGUI(self.db, manufactured=True)
Example #3
0
 def products_clicked(self, button):
     import products
     products.ProductsGUI(self.db)
 def products_activated(self, button):
     import products
     products.ProductsGUI(self.main)
Example #5
0
	def row_activate(self, treeview, path, treeviewcolumn):
		treeiter = self.product_location_store.get_iter(path)
		product_id = self.product_location_store.get_value(treeiter, 9)
		import products
		products.ProductsGUI(self.db, product_id, product_location_tab = True)
Example #6
0
	def product_window(self, column):
		import products
		products.ProductsGUI(self.db)
Example #7
0
	def product_clicked (self, menuitem):
		import products
		products.ProductsGUI(self.main)
Example #8
0
	def edit_product_clicked (self, button):
		import products
		p = products.ProductsGUI (self.main)
		p.select_product (self.product_id)
		self.window.destroy()
Example #9
0
 def products_activated(self, column):
     import products
     products.ProductsGUI(self.main)
Example #10
0
 def products_window(self, widget):
     import products
     products.ProductsGUI(self)