mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
15 lines
513 B
Python
15 lines
513 B
Python
# -*- 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()
|