[IMP] base_module_upgrade: improve generated form view in code
bzr revid: rco@openerp.com-20120629101538-spel6ybr9j33604d
This commit is contained in:
@@ -46,19 +46,19 @@ class base_module_upgrade(osv.osv_memory):
|
||||
|
||||
ids = self.get_module_list(cr, uid, context=context)
|
||||
if not ids:
|
||||
res['arch'] = '''<form string="Apply Scheduled Upgrades" version="7.0">
|
||||
<header>
|
||||
<button name="config" string="Start configuration" type="object" class="oe_highlight_on_dirty"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel"/>
|
||||
</header>
|
||||
<group>
|
||||
<separator string="System update completed" colspan="4"/>
|
||||
<label align="0.0" string="The selected modules have been updated / installed !" colspan="4"/>
|
||||
<label align="0.0" string="We suggest to reload the page to see the new menus." colspan="4"/>
|
||||
</group>
|
||||
</form>'''
|
||||
|
||||
res['arch'] = """
|
||||
<form string="Apply Scheduled Upgrades" version="7.0">
|
||||
<header>
|
||||
<button name="config" string="Start configuration" type="object" class="oe_highlight"/>
|
||||
or
|
||||
<button string="Cancel" class="oe_link" special="cancel"/>
|
||||
</header>
|
||||
<separator string="System update completed"/>
|
||||
<label string="The selected modules have been updated / installed !"/>
|
||||
<newline/>
|
||||
<label string="We suggest to reload the page to see the new menus."/>
|
||||
</form>
|
||||
"""
|
||||
return res
|
||||
|
||||
def get_module_list(self, cr, uid, context=None):
|
||||
|
||||
Reference in New Issue
Block a user