RavishchandraMurari(OpenERP) has proposed merging lp:~openerp-dev/openobject-client/trunk-usability-m2m_selection_popup-rmu into lp:~openerp-dev/openobject-client/trunk-usability.
Requested reviews: Amit (Open ERP) (apa-tiny) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-client/trunk-usability-m2m_selection_popup-rmu/+merge/62450 hello sir I have made required changes for many2many selection popup ..... thanks ravish... -- https://code.launchpad.net/~openerp-dev/openobject-client/trunk-usability-m2m_selection_popup-rmu/+merge/62450 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-client/trunk-usability.
=== modified file 'bin/widget/view/form_gtk/many2many.py' --- bin/widget/view/form_gtk/many2many.py 2011-04-20 09:31:42 +0000 +++ bin/widget/view/form_gtk/many2many.py 2011-05-26 10:17:24 +0000 @@ -148,6 +148,12 @@ self.wid_text.get_text(), domain, 'ilike', context) ids = [oid for oid, _ in records] self.wid_text.set_text('') + + + if self.model.pager_cache.has_key(self.name): + ex_ids = filter(lambda x: x in self.model.pager_cache.get(self.name), ids) + domain.append(('id','not in',ex_ids)) + win = win_search(self.attrs['relation'], sel_multi=True, ids=ids, context=context, domain=domain, parent=self._window) ids = win.go()
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-web Post to : openerp-dev-web@lists.launchpad.net Unsubscribe : https://launchpad.net/~openerp-dev-web More help : https://help.launchpad.net/ListHelp