many2many widget values

Bug #983858 reported by David Lefever @ Taktik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Committed
Undecided
OpenERP Publisher's Warranty Team

Bug Description

Hello,

I have in my view a many2many field.
This field is updated when another field is changed, like this :

    def onchange_anotherfield_id(self, cr, uid, ids, anotherfield_id, context=None):
        unassigned_shop_ids = []
        shop_ids = self.pool.get('sale.shop').search(cr, uid, [])
        return {'value':{'shop_id':shop_ids}}

The values in the field are correctly updated.
But when I try to add a new value (with the add button), it removes all the previous values.
Same thing happens when I try to delete a value, it deletes all the values.

This bug does not happen for the values I add directly with the add button.

And this works correctly in the GTK Client.

Can you please take a look at this bug?

If you have any questions, do not hesitate to contact me.

Thank you very much,

David Lefever

Tags: maintenance
Changed in openerp-web:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
tags: added: maintenance
Changed in openerp-web:
status: New → In Progress
Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote :

Hello,

This has been commited in lp:~openerp-dev/openobject-client-web/6.0-opw-573834-msh.

This will be merged in stable version 6.0 soon.

Thanks.

Changed in openerp-web:
status: In Progress → Fix Committed
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.