parent
2e16727778
commit
b7ccfd6bb5
6
load.py
6
load.py
|
@ -637,7 +637,7 @@ class LoadUnitLoad(Wizard):
|
|||
post_order = StateTransition()
|
||||
data = StateView('carrier.load_uls.data',
|
||||
'carrier_load_ul.load_uls_data_view_form', [
|
||||
Button('Exit', 'end', 'tryton-cancel'),
|
||||
Button('Exit', 'exit', 'tryton-cancel'),
|
||||
Button('Unload ULs', 'unload_', 'tryton-undo'),
|
||||
Button('Do', 'do_', 'tryton-ok', states={
|
||||
'readonly': Eval('ul_code') | Eval('uls_to_load'),
|
||||
|
@ -658,6 +658,7 @@ class LoadUnitLoad(Wizard):
|
|||
unload_ = StateTransition()
|
||||
do_ = StateTransition()
|
||||
open_ = StateAction('carrier_load.act_load_order')
|
||||
exit = StateTransition()
|
||||
|
||||
@classmethod
|
||||
def __setup__(cls):
|
||||
|
@ -748,6 +749,9 @@ class LoadUnitLoad(Wizard):
|
|||
order, _ = self._get_load_order()
|
||||
Order.do([order])
|
||||
# TODO: print reports
|
||||
self.transition_exit()
|
||||
|
||||
def transition_exit(self):
|
||||
if Transaction().context['active_model'] != 'carrier.load.order':
|
||||
return 'open_'
|
||||
return 'end'
|
||||
|
|
|
@ -430,7 +430,7 @@ msgctxt "wizard_button:carrier.load_uls,data,do_:"
|
|||
msgid "Do"
|
||||
msgstr "Finalizar"
|
||||
|
||||
msgctxt "wizard_button:carrier.load_uls,data,end:"
|
||||
msgctxt "wizard_button:carrier.load_uls,data,exit:"
|
||||
msgid "Exit"
|
||||
msgstr "Salir"
|
||||
|
||||
|
|
Loading…
Reference in New Issue