[FIX] Added /openerp in module path and some minor changes.
bzr revid: noz@tinyerp.com-20100708114910-moozx20hkolnr9kk
This commit is contained in:
@@ -37,10 +37,14 @@ class module_web(osv.osv):
|
||||
self.create(cr, uid, module)
|
||||
|
||||
def button_install(self, cr, uid, ids, context={}):
|
||||
return self.write(cr, uid, ids, {'state': 'installed'}, context)
|
||||
res = self.write(cr, uid, ids, {'state': 'installed'}, context)
|
||||
if res:
|
||||
return "Installed"
|
||||
|
||||
def button_uninstall(self, cr, uid, ids, context={}):
|
||||
return self.write(cr, uid, ids, {'state': 'uninstalled'}, context)
|
||||
res = self.write(cr, uid, ids, {'state': 'uninstalled'}, context)
|
||||
if res:
|
||||
return "Uninstalled"
|
||||
|
||||
module_web()
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
<record id="open_module_web_list" model="ir.actions.url">
|
||||
<field name="name">web_module_list</field>
|
||||
<field name="url">/modules</field>
|
||||
<field name="url">/openerp/modules</field>
|
||||
</record>
|
||||
<menuitem name="Web Modules" action="open_module_web_list" id="open_module_web_list_url" type="url" parent="base.menu_management"/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user