~openerp-dev/openobject-client/duplication_of_ir.filters

« back to all changes in this revision

Viewing changes to bin/widget/view/form.py

  • Committer: RGA(OpenERP)
  • Date: 2010-10-12 11:11:19 UTC
  • mfrom: (1564.1.45 trunk)
  • Revision ID: rga@tinyerp.com-20101012111119-jsuwv2erjdxq44us
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
                    #tb.insert(tbutton,-1)
234
234
 
235
235
                    def _action(button, action, type):
236
 
                        data={}
237
 
                        context=self.screen.context
238
 
                        act=action.copy()
 
236
                        data = {}
 
237
                        context = self.screen.context
 
238
                        if 'group_by' in context:
 
239
                            del context['group_by']
 
240
                        act = action.copy()
239
241
                        if type in ('print', 'action'):
240
242
                            self.screen.save_current()
241
243
                            id = self.screen.current_model and self.screen.current_model.id