[POS-commit] r7139 - in stoq/trunk: data/glade stoq/gui/pos
fabio morbec
fabio at async.com.br
Wed Aug 22 10:35:07 BRT 2007
Author: fabio
Date: Wed Aug 22 10:35:06 2007
New Revision: 7139
Modified:
stoq/trunk/data/glade/pos.glade
stoq/trunk/stoq/gui/pos/pos.py
Log:
#3509: A opção "Imprimir Pedido" no menu vendas, não está sendo chamada (retirado do menu a opcao de imprimir).
Modified: stoq/trunk/data/glade/pos.glade
==============================================================================
--- stoq/trunk/data/glade/pos.glade (original)
+++ stoq/trunk/data/glade/pos.glade Wed Aug 22 10:35:06 2007
@@ -129,15 +129,6 @@
</widget>
</child>
<child>
- <widget class="GtkAction" id="PrintOrder">
- <property name="name">PrintOrder</property>
- <property name="label" translatable="yes">Print Order...</property>
- <property name="tooltip" translatable="yes">Print the current sale order</property>
- <property name="stock_id">gtk-print</property>
- <property name="accelerator"><Control>p</property>
- </widget>
- </child>
- <child>
<widget class="GtkAction" id="ProductSearch">
<property name="name">ProductSearch</property>
<property name="label" translatable="yes">Products...</property>
@@ -244,8 +235,6 @@
<separator name="sep"/>
<menuitem action="NewDelivery"/>
<menuitem action="OrderCheckout"/>
- <separator name="sep10"/>
- <menuitem action="PrintOrder"/>
<separator name="sep2"/>
<menuitem action="Quit"/>
</menu>
Modified: stoq/trunk/stoq/gui/pos/pos.py
==============================================================================
--- stoq/trunk/stoq/gui/pos/pos.py (original)
+++ stoq/trunk/stoq/gui/pos/pos.py Wed Aug 22 10:35:06 2007
@@ -59,7 +59,6 @@
from stoqlib.gui.base.gtkadds import button_set_image_with_label
from stoqlib.gui.editors.serviceeditor import ServiceItemEditor
from stoqlib.gui.fiscalprinter import FiscalPrinterHelper
-from stoqlib.gui.printing import print_report
from stoqlib.gui.search.giftcertificatesearch import GiftCertificateSearch
from stoqlib.gui.search.personsearch import ClientSearch
from stoqlib.gui.search.productsearch import ProductSearch
@@ -67,7 +66,6 @@
from stoqlib.gui.search.sellablesearch import SellableSearch
from stoqlib.gui.search.servicesearch import ServiceSearch
from stoqlib.gui.wizards.salewizard import ConfirmSaleWizard
-from stoqlib.reporting.sale import SaleOrderReport
from stoq.gui.application import AppWindow
from stoq.gui.pos.deliveryeditor import DeliveryEditor
@@ -269,7 +267,7 @@
has_sale_items = len(self.sale_items) >= 1
self.set_sensitive((self.checkout_button, self.remove_item_button,
- self.PrintOrder, self.NewDelivery,
+ self.NewDelivery,
self.OrderCheckout), has_sale_items)
self.CancelOrder.set_sensitive(has_sale_items)
has_products = False
@@ -600,10 +598,6 @@
def on_OrderCheckout__activate(self, action):
self._checkout()
- def on_PrintOrder__activate(self, action):
- sale = self._create_sale(self.conn)
- print_report(SaleOrderReport, sale)
-
def on_NewDelivery__activate(self, action):
self._add_delivery()
More information about the POS-commit
mailing list