[IMP] project,crm: spellcheck/cleanup `user_prefence`->`user_preference`
bzr revid: odo@openerp.com-20110906073742-lzge2gphka2vmft7
This commit is contained in:
parent
752df5acbd
commit
c94116f41b
|
@ -383,7 +383,6 @@
|
|||
<group name="default_filters" position="inside">
|
||||
<field name="context_section_id" completion="1"
|
||||
widget="selection"
|
||||
context="{'user_prefence':True}"
|
||||
readonly="0"/>
|
||||
</group>
|
||||
</field>
|
||||
|
|
|
@ -55,7 +55,7 @@ class project(osv.osv):
|
|||
def search(self, cr, user, args, offset=0, limit=None, order=None, context=None, count=False):
|
||||
if user == 1:
|
||||
return super(project, self).search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count)
|
||||
if context and context.has_key('user_prefence') and context['user_prefence']:
|
||||
if context and context.get('user_preference'):
|
||||
cr.execute("""SELECT project.id FROM project_project project
|
||||
LEFT JOIN account_analytic_account account ON account.id = project.analytic_account_id
|
||||
LEFT JOIN project_user_rel rel ON rel.project_id = project.analytic_account_id
|
||||
|
|
|
@ -562,7 +562,7 @@
|
|||
<field eval="18" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<group name="default_filters" position="inside">
|
||||
<field name="context_project_id" context="{'user_prefence':True}" widget="selection"/>
|
||||
<field name="context_project_id" context="{'user_preference':True}" widget="selection"/>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
|
Loading…
Reference in New Issue