Browse Source

[FIX] pep8

[FIX] remove unuseful comments
pull/144/head
Damien Crier 10 years ago
parent
commit
7a48445c18
  1. 2
      web_warning_on_save/__init__.py
  2. 5
      web_warning_on_save/static/src/js/web_warning_on_save.js

2
web_warning_on_save/__init__.py

@ -19,4 +19,4 @@
# #
############################################################################## ##############################################################################
import controller
import controller

5
web_warning_on_save/static/src/js/web_warning_on_save.js

@ -10,17 +10,12 @@ openerp.web_warning_on_save = function (instance) {
var model = self.model; var model = self.model;
var param = {'model': model, var param = {'model': model,
'id': self.datarecord.id ? self.datarecord.id : id}; 'id': self.datarecord.id ? self.datarecord.id : id};
// try {
self.rpc('/web/warning_on_save/check_warning_on_save', param) self.rpc('/web/warning_on_save/check_warning_on_save', param)
.done(function(res) { .done(function(res) {
if (res != false){ if (res != false){
alert(res); alert(res);
} }
}); });
// }
// catch(err){
// // nothing
// }
}) })
}, },
}); });

Loading…
Cancel
Save