3
Copyright (C) 2013 Therp BV
4
License: GNU AFFERO GENERAL PUBLIC LICENSE
5
Version 3 or any later version
9
openerp.web_import_models_with_inherits = function(openerp) {
10
openerp.web.DataImport.include({
11
/* At widget start, tag on to the 'ready' queue with a function to
12
add the model's _inherits fields to the list that contains all
13
fields that need not be provided by the import file even if they
14
have the 'required' attribute
19
this.ready.push(new openerp.web.DataSet(
20
this, this.model, this.context).call(
21
'get_fields_inherits', [], function(fields) {
22
_.each(fields, function(val) {
23
self.fields_with_defaults.push(val);