~unifield-team/unifield-web/qt-int

« back to all changes in this revision

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

  • Committer: jf
  • Date: 2016-10-25 09:51:48 UTC
  • mfrom: (4807.4.1 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20161025095148-ksuumgr4w7ndjs47
US-1647 [FIX] List view: keep approximation when user switches from tree to form view

lp:~fabien-morin/unifield-web/fm-us-1647

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
    template = "/openerp/widgets/templates/viewform.mako"
35
35
 
36
 
    params = ['limit', 'offset', 'count', 'search_domain', 'search_data', 'filter_domain', 'notebook_tab', 'context_menu', 'previously_selected', 'previously_selected_length']
 
36
    params = ['limit', 'offset', 'count', 'approximation', 'search_domain', 'search_data', 'filter_domain', 'notebook_tab', 'context_menu', 'previously_selected', 'previously_selected_length']
37
37
    member_widgets = ['screen', 'search', 'sidebar', 'logs']
38
38
 
39
39
    def __init__(self, params, **kw):
123
123
        self.limit = self.screen.limit
124
124
        self.offset = self.screen.offset
125
125
        self.count = self.screen.count
 
126
        self.approximation = self.screen.approximation
126
127
 
127
128
        self.search_domain = params.search_domain
128
129
        self.search_data = params.search_data