Vaibhav (OpenERP) has proposed merging 
lp:~openerp-dev/openerp-web/trunk-bug-910801-vda into lp:openerp-web.

Requested reviews:
  OpenERP R&D Web Team (openerp-dev-web)
Related bugs:
  Bug #910801 in OpenERP Web: "search meeting view"
  https://bugs.launchpad.net/openerp-web/+bug/910801

For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-910801-vda/+merge/87575
-- 
https://code.launchpad.net/~openerp-dev/openerp-web/trunk-bug-910801-vda/+merge/87575
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openerp-web/trunk-bug-910801-vda.
=== modified file 'addons/web_gantt/static/src/js/gantt.js'
--- addons/web_gantt/static/src/js/gantt.js	2012-01-04 16:16:15 +0000
+++ addons/web_gantt/static/src/js/gantt.js	2012-01-05 08:34:06 +0000
@@ -506,12 +506,17 @@
         if (groupbys.length) {
             this.group_by = groupbys;
         }
-        
+        var fields = _.compact(_.map(this.fields_view.arch.attrs,function(value,key) {
+            if (key != 'string' && key != 'default_group_by') {
+                return value || '';
+            }
+        }));
+        fields = _.uniq(fields.concat(_.keys(this.fields), this.text, this.group_by));
         $.when(this.has_been_loaded).then(function() {
-                self.dataset.read_slice([], {
+                self.dataset.read_slice(fields, {
                     domain: domains,
                     context: contexts
-                }).done(function(projects){
+                }).done(function(projects) {
                     self.on_project_loaded(projects);
                 });
         });

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to