[FIX] web: avoid force_reload in list editable
[FIX] web: force load record after reload page
These fixes prevent to open existing record form
this.$el.add(this.$buttons).removeClass('oe_form_dirty');
var shown = this.has_been_loaded;
- if (options.reload !== false || !this.datarecord.id) {
+ if (options.reload !== false) {
shown = shown.then(function() {
- if (self.dataset.index === null || !self.datarecord.id) {
+ if (self.dataset.index === null) {
// null index means we should start a new record
return self.on_button_new();
}
mock('test.model:onchange', function () {
return {};
});
- mock('test.model:default_get', function () {
- return {};
- });
}
}, function (test) {
/**
});
}
}, function (test) {
- test('newrecord', {asserts: 7}, function (instance, $fix, mock) {
+ test('newrecord', {asserts: 6}, function (instance, $fix, mock) {
var got_defaults = false;
mock('demo:default_get', function (args) {
var fields = args[0];