~fabien-morin/unifield-web/fm-us-3366

« back to all changes in this revision

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

  • Committer: jf
  • Date: 2017-05-18 09:55:05 UTC
  • mfrom: (4842.3.5 unifield-web)
  • Revision ID: jfb@tempo-consulting.fr-20170518095505-as0f6t5pzap6edpo
US-2704 [IMP] Finance Dashbord: new attribute target_action_id on dashbord top open specific views

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    template = "/openerp/widgets/templates/screen.mako"
33
33
 
34
34
    params = ['model', 'state', 'id', 'ids', 'view_id', 'view_ids', 'view_mode', 'view_type', 'domain',
35
 
              'context', 'limit', 'offset', 'count', 'approximation', 'group_by_ctx', 'action_id']
 
35
              'context', 'limit', 'offset', 'count', 'approximation',
 
36
              'group_by_ctx', 'action_id', 'target_action_id']
36
37
 
37
38
    member_widgets = ['widget']
38
39
 
83
84
        self.limit         = params.limit
84
85
        self.count         = params.count
85
86
        self.approximation = params.approximation
 
87
        self.target_action_id = params.target_action_id or False
86
88
 
87
89
        if (self.ids or self.id) and self.count == 0:
88
90
            if self.ids and len(self.ids) < self.limit: