oca-storage/odoo-bringout-oca-storage-fs_attachment/fs_attachment/models/ir_model.py
2025-08-29 15:43:06 +02:00

15 lines
367 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 IrModel(models.Model):
_inherit = "ir.model"
storage_id = fields.Many2one(
"fs.storage",
help="If specified, all attachments linked to this model will be "
"stored in the provided storage.",
)