[IMP] stock_quant_manual_assign: Delete picking operations to confirm the wizard of "quants Manual" and check availability.

This commit is contained in:
alfredo
2015-06-24 09:00:53 +02:00
committed by oihane
parent f58e48b901
commit 14d5f1f150
5 changed files with 27 additions and 51 deletions

View File

@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
from . import stock_picking

View File

@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
from openerp import models, api
class StockPicking(models.Model):
_inherit = 'stock.picking'
@api.multi
def action_assign(self):
self.mapped('pack_operation_ids').unlink()
return super(StockPicking, self).action_assign()