minor fix focus

This commit is contained in:
Wilson Gomez 2023-01-23 11:31:16 -05:00
parent 1321d71bcb
commit bd9becb0ce

View file

@ -1114,7 +1114,6 @@ class AppWindow(FrontWindow):
self.set_amounts(res)
self._sale['number'] = res['number']
self.field_number.setText(self._sale['number'])
print(self.default_journal, 'defaut journal')
self.field_invoice_number.setText(res['invoice_number'])
self.field_amount.setText('')
self.set_state('payment')
@ -1124,6 +1123,7 @@ class AppWindow(FrontWindow):
self.create_new_sale()
else:
self.message_bar.set('enter_payment', self.default_journal['name'])
self.field_amount.setFocus()
def check_delivery_party(self):
kind = self.store.get('kind')