[FIX] stock: move to scrap option removed
This commit is contained in:
committed by
Frédéric van der Essen
parent
84c743dd40
commit
eb0ee0f23c
@@ -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');
|
||||
|
||||
@@ -168,7 +168,6 @@
|
||||
<t t-if="!row.cols.head_container && !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>
|
||||
|
||||
Reference in New Issue
Block a user