[Stoq-devel] [Bug 3189] Ao tentar utilizar o duplo clique do mouse para exibir detalhes nada acontece

bugzilla-daemon at async.com.br bugzilla-daemon at async.com.br
Mon Feb 26 16:35:21 BRT 2007


http://bugs.async.com.br/show_bug.cgi?id=3189


Johan Dahlin <jdahlin at async.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #3882|review?(jdahlin at async.com.br|review-
               Flag|)                           |




--- Comment #13 from Johan Dahlin <jdahlin at async.com.br>  2007-02-26 16:35:20 BRT ---
(From update of attachment 3882)
>Index: stoqlib/gui/search/receivingsearch.py

>+    def on_row_activated(self, klist, receiving_order):

on__klist__row_activated não funciona?...

>+        run_dialog(ReceivingOrderDetailsDialog, self, self.conn,
>+                   model=receiving_order.order)

.order ???

>Index: stoqlib/gui/base/search.py

>+    def on_row_activated(self, klist, obj):
>+        """Override this method on child when needed to perform double-click
>+        in selected row.
>+        """

>+    def _on_klist__row_activated(self, klist, obj):
>+         self.on_row_activated(klist, obj)

... se funcinona acima pode apagar aqui, ninguem usa mais...

>Index: stoqlib/domain/purchase.py

>+    @property
>+    def purchase(self):
>+        return PurchaseOrder.get(self.order_number)

Tá errado, deve ser self.id e não self.order_number.

>Index: stoqlib/domain/receiving.py

>+    @property
>+    def order(self):
>+        return ReceivingOrder.get(self.receiving_number)

Que isso???

Já tem um RecevingOrder...


-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Stoq-devel mailing list