~unifield-team/unifield-web/us-31

« back to all changes in this revision

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

  • Committer: jf
  • Date: 2013-12-18 19:47:51 UTC
  • mfrom: (4723.2.1 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20131218194751-1451ebf0v7jahfp3
UTP-760 [IMP] Issues with HQ entries Split (analytical and accounting)
UTP-761 [IMP] HQ entries - not possible to change the description field so we cannot mention which
lp:~unifield-team/unifield-web/web-jfb-utp-760

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
        if self.view_ids and self.view_type in self.view_mode:
74
74
            idx = self.view_mode.index(self.view_type)
75
75
            self.view_id = self.view_ids[idx]
76
 
 
 
76
 
77
77
        self.search_domain = params.search_domain or []
78
78
        self.domain        = params.domain or []
79
79
        self.context       = params.context or {}
88
88
                self.count = len(self.ids)
89
89
            else:
90
90
                self.count = rpc.RPCProxy(self.model).search_count(self.domain, self.context)
 
91
        self.set_previously_selected = None
 
92
 
 
93
        #forced_domain = params.forced_domain or []
 
94
        if params.get('_terp_reload_previously_selected'):
 
95
            self.set_previously_selected = rpc.RPCProxy(self.model).search(self.domain+[('id', 'in', params['_terp_reload_previously_selected'])], 0, 0, 0, self.context)
 
96
            #self.set_previously_selected = rpc.RPCProxy(self.model).search(forced_domain+[('id', 'in', params['_terp_reload_previously_selected'])], 0, 0, 0, self.context)
 
97
 
91
98
        self.prefix             = prefix
92
99
        self.views_preloaded    = views_preloaded or (params.views or {})
93
100