[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user