[FIX] stock: move to scrap option removed
authorAaron Bohy <aab@odoo.com>
Thu, 13 Nov 2014 09:09:40 +0000 (10:09 +0100)
committerFrédéric van der Essen <fvdessen@gmail.com>
Wed, 26 Nov 2014 11:06:21 +0000 (12:06 +0100)
addons/stock/static/src/js/widgets.js
addons/stock/static/src/xml/picking.xml

index 58af047..2046b0f 100644 (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');
index d2db763..e95cfeb 100644 (file)
                                         <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>