[POS-commit] r5453 - in stoqlib/trunk/stoqlib/gui: wizards

Johan Dahlin jdahlin at async.com.br
Mon Dec 4 13:04:37 BRST 2006


Author: jdahlin
Date: Mon Dec  4 13:04:36 2006
New Revision: 5453

Modified:
   stoqlib/trunk/stoqlib/gui/slaves/paymentslave.py
   stoqlib/trunk/stoqlib/gui/wizards/salewizard.py

Log:
remove a hack

Modified: stoqlib/trunk/stoqlib/gui/slaves/paymentslave.py
==============================================================================
--- stoqlib/trunk/stoqlib/gui/slaves/paymentslave.py	(original)
+++ stoqlib/trunk/stoqlib/gui/slaves/paymentslave.py	Mon Dec  4 13:04:36 2006
@@ -572,6 +572,14 @@
 class BillMethodSlave(BasePaymentMethodSlave):
     _data_slave_class = BillDataSlave
 
+    def __init__(self, wizard, parent, conn, sale, payment_method,
+                 outstanding_value=currency(0)):
+        BasePaymentMethodSlave.__init__(self, wizard, parent, conn,
+                                        sale, payment_method,
+                                        outstanding_value=outstanding_value)
+        self.bank_label.hide()
+        self.bank_combo.hide()
+
     def get_slave_by_inpayment(self, inpayment):
         adapted = inpayment.get_adapted()
         return self.get_payment_slave(adapted)

Modified: stoqlib/trunk/stoqlib/gui/wizards/salewizard.py
==============================================================================
--- stoqlib/trunk/stoqlib/gui/wizards/salewizard.py	(original)
+++ stoqlib/trunk/stoqlib/gui/wizards/salewizard.py	Mon Dec  4 13:04:36 2006
@@ -105,9 +105,6 @@
         if 1: # not self.slaves_dict.has_key(slave_class):
             slave = slave_class(*slave_args)
             self.slaves_dict[slave_class] = slave
-            if slave_class is BillMethodSlave:
-                slave.bank_label.hide()
-                slave.bank_combo.hide()
         else:
             slave = self.slaves_dict[slave_class]
 


More information about the POS-commit mailing list