mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
15 lines
437 B
Python
15 lines
437 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 StockQuantPackage(models.Model):
|
|
_inherit = "stock.quant.package"
|
|
|
|
warehouse_id = fields.Many2one(
|
|
"stock.warehouse", related="location_id.warehouse_id", store=True, index=True
|
|
)
|