[FIX] stock: move to scrap option removed

This commit is contained in:
Aaron Bohy
2014-11-26 12:06:21 +01:00
committed by Frédéric van der Essen
parent 84c743dd40
commit eb0ee0f23c
2 changed files with 0 additions and 11 deletions
-10
View File
@@ -278,16 +278,6 @@ function openerp_picking_widgets(instance){
self.$('#js_loc_select').data('op-id',op_id);
self.$el.siblings('#js_LocationChooseModal').modal();
});
/*this.$('.js_send_to_scrap').click(function(){
var op_id = $(this).parents("[data-id]:first").data('id');
var scrap_location = new instance.web.Model("stock.location")
.query(["id"])
.filter([['usage','!=','view'],['scrap_location','=',true]])
.first()
.then(function(result) {
self.getParent().change_location(op_id, result.id, false);
})
});*/
this.$('.js_pack_change_dst').click(function(){
var op_id = $(this).parents("[data-id]:first").data('id');
self.$('#js_loc_select').addClass('pack');
-1
View File
@@ -168,7 +168,6 @@
<t t-if="!row.cols.head_container &amp;&amp; !row.cols.container">
<li><a class="js_change_src" href="#">Change source location</a></li>
<li><a class="js_change_dst" href="#">Change destination location</a></li>
<!--<li><a class="js_send_to_scrap" href="#">Move to scrap</a></li>-->
</t>
<t t-if="row.cols.head_container">
<li><a class="js_pack_change_dst" href="#">Change destination location</a></li>