mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
22 lines
541 B
Python
22 lines
541 B
Python
# -*- coding: utf-8 -*-
|
|
# (c) 2015 Mikel Arregi - AvanzOSC
|
|
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
|
|
|
|
from openerp import api, fields, models
|
|
|
|
|
|
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()
|
|
|
|
|
|
class StockMove(models.Model):
|
|
_inherit = 'stock.move'
|
|
|
|
picking_type_code = fields.Selection(
|
|
related='picking_type_id.code', store=True)
|