Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-573705-msh into lp:openerp-web/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-573705-msh/+merge/101684
Hello,
Fixed the issue of kanban view show more record, show more records show the
next records button when you edit the record which are come from the button
show more it will give the warning "Kanban: could not find id".
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-573705-msh/+merge/101684
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-573705-msh.
=== modified file 'addons/web_kanban/static/src/js/kanban.js'
--- addons/web_kanban/static/src/js/kanban.js 2012-02-22 11:37:18 +0000
+++ addons/web_kanban/static/src/js/kanban.js 2012-04-12 05:53:18 +0000
@@ -305,6 +305,7 @@
this.$records = null;
this.records = [];
+ this.ids = [];
this.$has_been_started.then(function() {
self.do_add_records(records);
});
@@ -347,7 +348,9 @@
var rec = new openerp.web_kanban.KanbanRecord(self, record);
rec.insertBefore(self.$records.find('.oe_kanban_show_more'));
self.records.push(rec);
+ self.ids.push(rec.id);
});
+ this.view.dataset.ids = _.union(this.view.dataset.ids, self.ids);
this.$records.find('.oe_kanban_show_more').toggle(this.records.length < this.dataset.size())
.find('.oe_kanban_remaining').text(this.dataset.size() - this.records.length);
},
_______________________________________________
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