mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[FIX] pep8
[FIX] remove unuseful comments
This commit is contained in:
@@ -19,4 +19,4 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
import controller
|
||||
import controller
|
||||
|
||||
@@ -10,17 +10,12 @@ openerp.web_warning_on_save = function (instance) {
|
||||
var model = self.model;
|
||||
var param = {'model': model,
|
||||
'id': self.datarecord.id ? self.datarecord.id : id};
|
||||
// try {
|
||||
self.rpc('/web/warning_on_save/check_warning_on_save', param)
|
||||
.done(function(res) {
|
||||
if (res != false){
|
||||
alert(res);
|
||||
}
|
||||
});
|
||||
// }
|
||||
// catch(err){
|
||||
// // nothing
|
||||
// }
|
||||
})
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user