Ver Fonte

fix focus on product in save and clear cb

Pi há 2 anos atrás
pai
commit
97e2642793
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      grocery_transactions.py

+ 1 - 1
grocery_transactions.py

@@ -106,7 +106,7 @@ def _save_and_clear_callback(activity_manager):
     txn = activity_manager.get('transaction')
     activity_manager.app.save(txn.data)
     txn.clear()
-    txn.focus_on_product()
+    txn.focus_on(txn.edit_fields['product'])
     activity_manager.show(txn.update())
 
 args = sys.argv