~unifield-team/unifield-web/web-uf-1718

« back to all changes in this revision

Viewing changes to addons/openerp/widgets/sidebar.py

  • Committer: jf
  • Date: 2013-03-12 13:30:20 UTC
  • Revision ID: jfb@tempo-consulting.fr-20130312133020-mnobs6fxzt0dh38t
UF-1861 [FIX] Link "Track Changes": empty tree view

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        self.attachments = []
51
51
        self.sub_menu = None
52
52
 
53
 
        for relate in self.relates:
54
 
            relate['context'] = self.context
 
53
 
 
54
        # add context to relate action to get the lang
 
55
        if self.context:
 
56
            newctx = self.context.copy()
 
57
            # remove the active_id of ir.ui.view
 
58
            to_remove = ['active_id', 'active_ids']
 
59
            for to_del in to_remove:
 
60
                if to_del in newctx:
 
61
                    del newctx[to_del]
 
62
            for relate in self.relates:
 
63
                relate['context'] = newctx
55
64
 
56
65
        action = 'client_action_multi'
57
66
        if self.view_type == 'form':