예제 #1
0
 def on_PrintLabels__activate(self, button):
     selected = self.results.get_selected()
     sellable = selected.sellable
     label_data = self.run_dialog(PrintLabelEditor, None, self.store,
                                  sellable)
     if label_data:
         print_labels(label_data, self.store)
예제 #2
0
파일: stock.py 프로젝트: adrianoaguiar/stoq
 def on_PrintLabels__activate(self, button):
     selected = self.results.get_selected()
     sellable = selected.sellable
     label_data = self.run_dialog(PrintLabelEditor, None, self.store,
                                  sellable)
     if label_data:
         print_labels(label_data, self.store)
예제 #3
0
 def _maybe_print_labels(self):
     param = api.sysparam.get_string('LABEL_TEMPLATE_PATH')
     if not param:
         return
     if not yesno(_(u'Do you want to print the labels for the received products?'),
                  gtk.RESPONSE_YES, _(u'Print labels'), _(u"Don't print")):
         return
     label_data = run_dialog(SkipLabelsEditor, self, self.store)
     if label_data:
         print_labels(label_data, self.store, receiving=self.model)
예제 #4
0
 def _maybe_print_labels(self):
     param = api.sysparam.get_string('LABEL_TEMPLATE_PATH')
     if not param:
         return
     if not yesno(_(u'Do you want to print the labels for the received products?'),
                  Gtk.ResponseType.YES, _(u'Print labels'), _(u"Don't print")):
         return
     label_data = run_dialog(SkipLabelsEditor, self, self.store)
     if label_data:
         print_labels(label_data, self.store, receiving=self.model)
예제 #5
0
 def _maybe_print_labels(self):
     param = api.sysparam(self.store).LABEL_TEMPLATE_PATH
     if not param.path:
         return
     if not yesno(_(u'Do you want to print the labels for the received products?'),
                  gtk.RESPONSE_YES, _(u'Print labels'), _(u"Don't print")):
         return
     label_data = run_dialog(SkipLabelsEditor, self, self.store)
     if label_data:
         print_labels(label_data, self.store, self.model.purchase)
예제 #6
0
 def on_print_labels_clicked(self, button, parent_label_button=None):
     label_data = run_dialog(PrintLabelEditor, None, self.store,
                             self.model.sellable)
     if label_data:
         print_labels(label_data, self.store)
예제 #7
0
 def on_print_labels__clicked(self, button):
     label_data = run_dialog(SkipLabelsEditor, self, self.store)
     if label_data:
         print_labels(label_data, self.store, self.model)
예제 #8
0
 def on_print_labels_clicked(self, button, parent_label_button=None):
     label_data = run_dialog(PrintLabelEditor, None, self.store,
                             self.model.sellable)
     if label_data:
         print_labels(label_data, self.store)
예제 #9
0
 def on_print_labels__clicked(self, button):
     label_data = run_dialog(SkipLabelsEditor, self, self.store)
     if label_data:
         print_labels(label_data, self.store, self.model)