[IMP] Set icons to state of wizards
authornel@tinyerp.com <>
Tue, 30 Mar 2010 08:42:33 +0000 (10:42 +0200)
committernel@tinyerp.com <>
Tue, 30 Mar 2010 08:42:33 +0000 (10:42 +0200)
bzr revid: nel@tinyerp.com-20100330084233-y8isdsecqmth9j7d

19 files changed:
addons/account/project/wizard/wizard_analytic_account_chart.py
addons/account/wizard/wizard_account_chart.py
addons/account/wizard/wizard_account_duplicate.py
addons/account/wizard/wizard_aged_trial_balance.py
addons/account/wizard/wizard_automatic_reconcile.py
addons/account/wizard/wizard_central_journal.py
addons/account/wizard/wizard_change_currency.py
addons/account/wizard/wizard_compare_account_balance_report.py
addons/account/wizard/wizard_fiscalyear_close.py
addons/account/wizard/wizard_fiscalyear_close_state.py
addons/account/wizard/wizard_general_journal.py
addons/account/wizard/wizard_open_closed_fiscalyear.py
addons/account/wizard/wizard_period_close.py
addons/account/wizard/wizard_print_journal.py
addons/account/wizard/wizard_statement_from_invoice.py
addons/account/wizard/wizard_subscription_generate.py
addons/account/wizard/wizard_vat.py
addons/l10n_be/wizard/partner_vat_listing.py
addons/l10n_be/wizard/wizard_vat_intra.py

index 354fe6e..e011fad 100644 (file)
@@ -65,7 +65,7 @@ class wizard_analytic_account_chart(wizard.interface):
     states = {
         'init': {
             'actions': [],
-            'result': {'type': 'form', 'arch':_account_chart_arch, 'fields':_account_chart_fields, 'state': [('end', 'Cancel'), ('open', 'Open Charts')]}
+            'result': {'type': 'form', 'arch':_account_chart_arch, 'fields':_account_chart_fields, 'state': [('end', 'Cancel', 'gtk-cancel'), ('open', 'Open Charts', 'gtk-ok')]}
         },
         'open': {
             'actions': [],
index ca8153f..ae6b29b 100644 (file)
@@ -24,7 +24,7 @@ import pooler
 
 class wizard_account_chart(wizard.interface):
     _account_chart_arch = '''<?xml version="1.0"?>
-    <form string="Account charts">
+    <form string="Open account charts">
         <field name="fiscalyear"/>
         <label align="0.7" colspan="6" string="(If you do not select Fiscal year it will take all open fiscal years)"/>
         <field name="target_move"/>
@@ -67,7 +67,7 @@ class wizard_account_chart(wizard.interface):
     states = {
         'init': {
             'actions': [_get_defaults],
-            'result': {'type': 'form', 'arch':_account_chart_arch, 'fields':_account_chart_fields, 'state': [('end', 'Cancel'), ('open', 'Open Charts')]}
+            'result': {'type': 'form', 'arch':_account_chart_arch, 'fields':_account_chart_fields, 'state': [('end', 'Cancel', 'gtk-cancel'), ('open', 'Open', 'gtk-ok')]}
         },
         'open': {
             'actions': [],
index 17fbad4..abded25 100644 (file)
@@ -40,7 +40,7 @@ class wizard_account_duplicate(wizard.interface):
     states = {
         'init': {
             'actions': [],
-            'result': {'type': 'form', 'arch': duplicate_form, 'fields': duplicate_fields, 'state': (('end', 'Cancel'), ('duplicate', 'Duplicate'))},
+            'result': {'type': 'form', 'arch': duplicate_form, 'fields': duplicate_fields, 'state': (('end', 'Cancel', 'gtk-cancel'), ('duplicate', 'Duplicate', 'gtk-ok'))},
         },
         'duplicate': {
             'actions': [_do_duplicate],
index 9935811..d21a64c 100755 (executable)
@@ -28,7 +28,7 @@ from mx.DateTime import *
 from tools.translate import _
 
 _aged_trial_form = """<?xml version="1.0"?>
-<form string="Aged Trial Balance">
+<form string="Print Aged Trial Balance">
     <field name="company_id"/>
     <newline/>
     <field name="date1"/>
@@ -101,7 +101,7 @@ class wizard_report(wizard.interface):
     states = {
         'init': {
             'actions': [_get_defaults],
-            'result': {'type':'form', 'arch':_aged_trial_form, 'fields':_aged_trial_fields, 'state':[('end','Cancel'),('print','Print Aged Trial Balance')]},
+            'result': {'type':'form', 'arch':_aged_trial_form, 'fields':_aged_trial_fields, 'state':[('end','Cancel', 'gtk-cancel'),('print','Print', 'gtk-ok')]},
         },
         'print': {
             'actions': [_calc_dates],
index d3a3733..ac26b6c 100644 (file)
@@ -312,7 +312,7 @@ class wiz_reconcile(wizard.interface):
         },
         'reconcile': {
             'actions': [_reconcile],
-            'result': {'type':'form', 'arch':_result_form, 'fields':_result_fields, 'state':[('end','OK')]}
+            'result': {'type':'form', 'arch':_result_form, 'fields':_result_fields, 'state':[('end','OK', 'gtk-cancel')]}
         }
     }
 wiz_reconcile('account.automatic.reconcile')
index 8a6e164..32fb02f 100644 (file)
@@ -59,7 +59,7 @@ class wizard_print_journal(wizard.interface):
     states = {
         'init': {
             'actions': [],
-            'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel'), ('print', 'Print'))},
+            'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel', 'gtk-cancel'), ('print', 'Print', 'gtk-ok'))},
         },
         'print': {
             'actions': [_check_data],
index 69fbd8c..45b23e4 100644 (file)
@@ -92,7 +92,7 @@ class wizard_change_currency(wizard.interface):
         },
         'change': {
             'actions': [],
-            'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel'), ('next', 'Change Currency'))},
+            'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel', 'gtk-cancel'), ('next', 'Change Currency', 'gtk-go-forward'))},
         },
         'next': {
             'actions': [_change_currency],
@@ -100,7 +100,7 @@ class wizard_change_currency(wizard.interface):
         },
         'message': {
             'actions': [],
-            'result': {'type': 'form', 'arch': message, 'fields': {}, 'state': [('end', 'Ok')]},
+            'result': {'type': 'form', 'arch': message, 'fields': {}, 'state': [('end', 'Ok', 'gtk-cancel')]},
         },
     }
 wizard_change_currency('account.invoice.currency_change')
index 1928e82..8000d37 100755 (executable)
@@ -146,7 +146,7 @@ class wizard_report(wizard.interface):
     states = {
         'init': {
             'actions': [_get_defaults],
-            'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel'),('checkyear','Print')]}
+            'result': {'type':'form', 'arch':dates_form, 'fields':dates_fields, 'state':[('end','Cancel', 'gtk-cancel'),('checkyear','Print', 'gtk-ok')]}
         },
         'backtoinit': {
             'actions': [],
index 42e3527..cbf4b8d 100644 (file)
@@ -214,7 +214,7 @@ class wiz_journal_close(wizard.interface):
     states = {
         'init': {
             'actions': [_data_load],
-            'result': {'type': 'form', 'arch':_transaction_form, 'fields':_transaction_fields, 'state':[('end','Cancel'),('close','Create entries')]}
+            'result': {'type': 'form', 'arch':_transaction_form, 'fields':_transaction_fields, 'state':[('end','Cancel', 'gtk-cancel'),('close','Create', 'gtk-ok')]}
         },
         'close': {
             'actions': [_data_save],
index 2f8331f..5d876f9 100644 (file)
@@ -57,7 +57,7 @@ class wiz_journal_close_state(wizard.interface):
     states = {
         'init': {
             'actions': [],
-            'result': {'type': 'form', 'arch':_transaction_form, 'fields':_transaction_fields, 'state':[('end','Cancel'),('close','Close states')]}
+            'result': {'type': 'form', 'arch':_transaction_form, 'fields':_transaction_fields, 'state':[('end','Cancel', 'gtk-cancel'),('close','Close states', 'gtk-ok')]}
         },
         'close': {
             'actions': [_data_save],
index 4d23624..26935aa 100644 (file)
@@ -57,7 +57,7 @@ class wizard_print_journal(wizard.interface):
     states = {
         'init': {
             'actions': [],
-            'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel'), ('print', 'Print'))},
+            'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel', 'gtk-cancel'), ('print', 'Print', 'gtk-ok'))},
         },
         'print': {
             'actions': [_check_data],
index cbc4631..18ac86c 100644 (file)
@@ -63,7 +63,7 @@ class open_closed_fiscal(wizard.interface):
                 'type': 'form',
                 'arch': form,
                 'fields': fields,
-                'state':[('end','Cancel'),('open','Open')]
+                'state':[('end','Cancel', 'gtk-cancel'),('open','Open', 'gtk-ok')]
             }
         },
         'open': {
index d6ba736..abdbb9c 100644 (file)
@@ -43,7 +43,7 @@ class wiz_journal_close(wizard.interface):
     states = {
         'init': {
             'actions': [],
-            'result': {'type': 'form', 'arch':_transaction_form, 'fields':_transaction_fields, 'state':[('end','Cancel'),('close','Close Period')]}
+            'result': {'type': 'form', 'arch':_transaction_form, 'fields':_transaction_fields, 'state':[('end','Cancel', 'gtk-cancel'),('close','Close Period', 'gtk-ok')]}
         },
         'close': {
             'actions': [_data_save],
index 2f61b76..8cd9560 100644 (file)
@@ -66,7 +66,7 @@ class wizard_print_journal(wizard.interface):
     states = {
         'init': {
             'actions': [],
-            'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel'), ('print', 'Print'))},
+            'result': {'type': 'form', 'arch': form, 'fields': fields, 'state': (('end', 'Cancel', 'gtk-cancel'), ('print', 'Print', 'gtk-ok'))},
         },
         'print': {
             'actions': [_check_data],
index 92d33f3..6e9f912 100644 (file)
@@ -176,8 +176,8 @@ class PopulateStatementFromInv(wizard.interface):
                 'arch': FORM,
                 'fields': FIELDS,
                 'state': [
-                    ('end', '_Cancel','', True),
-                    ('finish', 'O_k','', True)
+                    ('end', '_Cancel','', True, 'gtk-cancel'),
+                    ('finish', 'O_k','', True, 'gtk-ok')
                 ]
             },
         },
index 51cbad9..1df25b2 100644 (file)
@@ -47,7 +47,7 @@ class wiz_subscription(wizard.interface):
     states = {
         'init': {
             'actions': [],
-            'result': {'type': 'form', 'arch':_subscription_form, 'fields':_subscription_fields, 'state':[('end','Cancel'),('generate','Compute Entry Dates')]}
+            'result': {'type': 'form', 'arch':_subscription_form, 'fields':_subscription_fields, 'state':[('end','Cancel', 'gtk-cancel'),('generate','Compute', 'gtk-ok')]}
         },
         'generate': {
             'actions': [_action_generate],
index f9d015d..6c14402 100755 (executable)
@@ -69,8 +69,8 @@ class wizard_report(wizard.interface):
                                'arch': dates_form,
                                'fields': dates_fields,
                                'state': [
-                                       ('end', 'Cancel'),
-                                       ('report', 'Print VAT Decl.')
+                                       ('end', 'Cancel', 'gtk-cancel'),
+                                       ('report', 'Print VAT Decl.', 'gtk-ok')
                                ]
                        }
                },
index 09876a2..ba5620a 100644 (file)
@@ -230,19 +230,19 @@ class wizard_vat(wizard.interface):
     states = {
         'init': {
             'actions': [],
-            'result': {'type':'form', 'arch':form, 'fields':fields, 'state':[('end','Cancel'),('go_step','View Clients')]},
+            'result': {'type':'form', 'arch':form, 'fields':fields, 'state':[('end','Cancel', 'gtk-cancel'),('go_step','View Clients', 'gtk-ok')]},
         },
         'go_step': {
             'actions': [_get_partner],
-            'result': {'type':'form', 'arch':client_form, 'fields':client_fields, 'state':[('end','Cancel'),('go','Create XML')]},
+            'result': {'type':'form', 'arch':client_form, 'fields':client_fields, 'state':[('end','Cancel', 'gtk-cancel'),('go','Create XML', 'gtk-ok')]},
         },
         'go': {
             'actions': [_create_xml],
-            'result': {'type':'form', 'arch':msg_form, 'fields':msg_fields, 'state':[('end','Ok')]},
+            'result': {'type':'form', 'arch':msg_form, 'fields':msg_fields, 'state':[('end','Ok', 'gtk-cancel')]},
         }
 
     }
 
 wizard_vat('list.vat.detail')
 
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
index 605313e..e29e2d9 100644 (file)
@@ -222,11 +222,11 @@ class parter_vat_intra(wizard.interface):
     states = {
         'init': {
             'actions': [_get_europe_country],
-            'result': {'type': 'form', 'arch':form_intra, 'fields': fields_intra, 'state':[('end','Cancel'),('go','Create XML') ]}
+            'result': {'type': 'form', 'arch':form_intra, 'fields': fields_intra, 'state':[('end','Cancel', 'gtk-cancel'),('go','Create XML', 'gtk-ok') ]}
                 },
          'go': {
             'actions': [_create_xml],
-            'result': {'type':'form', 'arch':msg_form, 'fields':msg_fields, 'state':[('end','Ok')]},
+            'result': {'type':'form', 'arch':msg_form, 'fields':msg_fields, 'state':[('end','Ok', 'gtk-cancel')]},
                 }
              }
-parter_vat_intra('vat.intra.xml')
\ No newline at end of file
+parter_vat_intra('vat.intra.xml')