mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] stock_quant_manual_assign: Delete picking operations to confirm the wizard of "quants Manual" and check availability.
This commit is contained in:
5
stock_quant_manual_assign/models/__init__.py
Normal file
5
stock_quant_manual_assign/models/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
# For copyright and license notices, see __openerp__.py file in root directory
|
||||
##############################################################################
|
||||
from . import stock_picking
|
||||
14
stock_quant_manual_assign/models/stock_picking.py
Normal file
14
stock_quant_manual_assign/models/stock_picking.py
Normal 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()
|
||||
Reference in New Issue
Block a user