[FIX] base: pass the context and define a new category for the modules

bzr revid: stw@openerp.com-20111003121021-hmf0xs2wod6rjkwr
This commit is contained in:
Stephane Wirtel 2011-10-03 14:10:21 +02:00
parent 3befd0be34
commit 29337910df
2 changed files with 5 additions and 1 deletions

View File

@ -303,7 +303,7 @@ class module(osv.osv):
if level<1:
raise orm.except_orm(_('Error'), _('Recursion error in modules dependencies !'))
demo = False
for module in self.browse(cr, uid, ids):
for module in self.browse(cr, uid, ids, context=context):
mdemo = False
for dep in module.dependencies_id:
if dep.state == 'unknown':

View File

@ -1,6 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.module.category" id="module_category_link">
<field name="name">Link</field>
<field name="sequence">0</field>
</record>
<record model="ir.module.category" id="module_category_customer_relationship_management">
<field name="name">Customer Relationship Management</field>
<field name="description">Helps you track and manage relations with customers such as leads, requests or issues. Can automatically send reminders, escalate requests or trigger business-specific actions based on standard events.</field>