Files
stock-logistics-warehouse/stock_scrap_location_default/models/res_config_settings.py
2024-07-01 09:57:45 +02:00

16 lines
391 B
Python

# Copyright 2023 ACSONE SA/NV
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
scrap_default_location_id = fields.Many2one(
comodel_name="stock.location",
related="company_id.scrap_default_location_id",
readonly=False,
)