[FIX] web: error setting wraparound on undefined

In function _next, sometimes options parameter is not passed, so setting on undefined is causing error.  (PR #15716)
This commit is contained in:
bluesoft83
2017-05-30 16:56:51 +02:00
committed by ged-odoo
parent a1db50e7c8
commit aed5563000
@@ -634,6 +634,7 @@ ListView.include(/** @lends instance.web.ListView# */{
* @return {*}
*/
_next: function (next_record, options) {
options = options || {};
next_record = next_record || 'succ';
var self = this;
return this.save_edition().then(function (saveInfo) {