[IMP] remove cancel button from wizard and improved view.
bzr revid: tpa@tinyerp.com-20120618070033-yth8u6ivgbuo67z2
This commit is contained in:
parent
5f86d6a0aa
commit
c61b4e3c0b
|
@ -103,13 +103,11 @@ class account_move_journal(osv.osv_memory):
|
|||
period_string = _("Period: %s") % tools.ustr(period)
|
||||
|
||||
separator_string = _("Open Journal Items !")
|
||||
cancel_string = _("Cancel")
|
||||
open_string = _("Open")
|
||||
view = """<?xml version="1.0" encoding="utf-8"?>
|
||||
<form string="Standard entries">
|
||||
<form string="Standard entries" version="7.0">
|
||||
<header>
|
||||
<button icon="terp-gtk-go-back-rtl" string="%s" name="action_open_window" default_focus="1" type="object"/>
|
||||
<button icon="gtk-cancel" special="cancel" string="%s"/>
|
||||
<button icon="terp-gtk-go-back-rtl" string="%s" name="action_open_window" default_focus="1" type="object" class="oe_form_button_active_flow"/>
|
||||
</header>
|
||||
<group string="%s" colspan="4">
|
||||
<field name="target_move" />
|
||||
|
@ -119,7 +117,7 @@ class account_move_journal(osv.osv_memory):
|
|||
<newline/>
|
||||
<label width="300" string="%s"/>
|
||||
</group>
|
||||
</form>""" % (open_string, cancel_string, separator_string, journal_string, period_string)
|
||||
</form>""" % (open_string, separator_string, journal_string, period_string)
|
||||
|
||||
view = etree.fromstring(view.encode('utf8'))
|
||||
xarch, xfields = self._view_look_dom_arch(cr, uid, view, view_id, context=context)
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
<field name="arch" type="xml">
|
||||
<form string="Confirm selected statement lines" version="7.0">
|
||||
<header>
|
||||
<button icon="gtk-cancel" special="cancel" string="Cancel"/>
|
||||
<button icon="gtk-execute" string="Confirm Lines" name="confirm_lines" type="object"/>
|
||||
<button icon="gtk-execute" string="Confirm Lines" name="confirm_lines" type="object" class="oe_form_button_active_flow"/>
|
||||
</header>
|
||||
<label string="Are you sure you want to confirm the selected Bank Statement lines ?"/>
|
||||
<label string="Confirmed lines cannot be changed anymore."/>
|
||||
|
|
Loading…
Reference in New Issue