[ADD] base_import: info message when everything looks ok after a validation
bzr revid: xmo@openerp.com-20121001140622-v63opfo97mmxf3sr
This commit is contained in:
@@ -31,6 +31,9 @@
|
||||
.oe_import .oe_import_error_report ul .oe_import_report_warning {
|
||||
background-color: #FEFFD9;
|
||||
}
|
||||
.oe_import .oe_import_error_report ul .oe_import_report_info {
|
||||
background-color: #d3ffd3;
|
||||
}
|
||||
|
||||
.oe_import .oe_import_noheaders {
|
||||
color: #888;
|
||||
|
||||
@@ -311,8 +311,10 @@ openerp.base_import = function (instance) {
|
||||
},
|
||||
render_import_result: function (message) {
|
||||
if (_.isEmpty(message)) {
|
||||
this.$el.removeClass('oe_import_error');
|
||||
return;
|
||||
message.push({
|
||||
type: 'info',
|
||||
message: _t("Everything seems valid.")
|
||||
});
|
||||
}
|
||||
// row indexes come back 0-indexed, spreadsheets
|
||||
// display 1-indexed.
|
||||
|
||||
Reference in New Issue
Block a user