many2many field - doesn't pass context to filter tag of search_default

Bug #1223697 reported by Lukas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Confirmed
Wishlist
OpenERP's Framework R&D

Bug Description

I have form view with many2many field defined this way:

<field name="x_steering_committee" context="{'member_ids': members[0][2],'search_default_skuska':1, 'search_view_ref':'x_test_project.view_project_member_filter'}" widget="many2many_kanban">

where members are another many2many field containig project members.

When I use add to add steering committee I wanna to be my filter acivated with filtered current project members in field 'members'

Search view I wanna use is defined this way:
<record model="ir.ui.view" id="view_project_member_filter">
            <field name="model">res.users</field>
            <field name="type">search</field>
            <field name="arch" type="xml">
                <search string="Current Project Team">
                    <filter string="Project Team" name="skuska" domain="[('id','in',context['member_ids'])]"/>
                </search>
            </field>
</record>

and end up, that filter is activated, but end up with error, that context['member_ids'] not exist, cause there is only default context and custom field I defined in context is not passed.

OpenERP version: 7.0-20130908-231053

Lukas (lookasko)
summary: - many2many field - don't pass context to filter tag of search_default
+ many2many field - doesn't pass context to filter tag of search_default
Amit Parik (amit-parik)
affects: openerp-web → openobject-server
Amit Parik (amit-parik)
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Wishlist
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.