mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
18 lines
455 B
Python
18 lines
455 B
Python
# Copyright (C) 2019 Akretion
|
|
# Copyright 2022 Foodles (http://www.foodles.co).
|
|
# @author Pierre Verkest <pierreverkest84@gmail.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class StockPicking(models.Model):
|
|
_inherit = "stock.picking"
|
|
|
|
warehouse_id = fields.Many2one(
|
|
"stock.warehouse",
|
|
related="picking_type_id.warehouse_id",
|
|
store=True,
|
|
index=True,
|
|
)
|