diff options
| author | Ujjvala Collins (OpenERP) <uco@tinyerp.com> | 2011-02-28 13:10:04 +0530 |
|---|---|---|
| committer | Ujjvala Collins (OpenERP) <uco@tinyerp.com> | 2011-02-28 13:10:04 +0530 |
| commit | ba6040c3f9ecac8f9eecaa6593a648baeefc8f3f (patch) | |
| tree | d5918f7d106b3a4e91c203f3c0e7b9a068baaac7 /addons/sync_base/wizard | |
| parent | 44780cf09f2878287844741864073402e75a1181 (diff) | |
| parent | 515d7210065fb8fac1884e2550919aa557b73ed5 (diff) | |
[MERGE]
bzr revid: uco@tinyerp.com-20110228074004-7ayh2gs6ijlxc7a9
Diffstat (limited to 'addons/sync_base/wizard')
| -rw-r--r-- | addons/sync_base/wizard/sync_base_view.xml | 9 | ||||
| -rw-r--r-- | addons/sync_base/wizard/synchronize_base.py | 4 |
2 files changed, 8 insertions, 5 deletions
diff --git a/addons/sync_base/wizard/sync_base_view.xml b/addons/sync_base/wizard/sync_base_view.xml index 6f61e0b6855..c957993fe67 100644 --- a/addons/sync_base/wizard/sync_base_view.xml +++ b/addons/sync_base/wizard/sync_base_view.xml @@ -10,9 +10,12 @@ <field name="tools"/> <newline /> <separator string="" colspan="4"/> - <group colspan="4" col="2"> - <button special="cancel" string="Cancel" icon="gtk-cancel"/> - <button name="action_synchronize" string="Synchronize" type="object" icon="terp-check"/> + <group colspan="4" col="4"> + <group colspan="2"/> + <group colspan="2"> + <button special="cancel" string="_Cancel" icon="gtk-cancel"/> + <button name="action_synchronize" string="_Synchronize" type="object" icon="terp-check"/> + </group> </group> </form> </field> diff --git a/addons/sync_base/wizard/synchronize_base.py b/addons/sync_base/wizard/synchronize_base.py index 4a20b0cf2b5..9077b32398b 100644 --- a/addons/sync_base/wizard/synchronize_base.py +++ b/addons/sync_base/wizard/synchronize_base.py @@ -19,7 +19,7 @@ # ############################################################################## -from osv import fields,osv,orm +from osv import fields,osv from tools.translate import _ @@ -46,7 +46,7 @@ class synchronize_base(osv.osv_memory): def _get_action(self, cr, uid, tools, context=None): if not tools: - tools = 'none' + raise osv.except_osv(_("Error !"),_("Select App to synchronize with.")) return self._get_actions_dic(cr, uid, context=context)[tools] def _get_actions_dic(self, cr, uid, context=None): |
