mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-21 01:32:10 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
# Copyright 2024 Raumschmiede GmbH
|
||||
# Copyright 2024 BCIM
|
||||
# Copyright 2024 ACSONE SA/NV
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class RmaReason(models.Model):
|
||||
|
||||
_name = "rma.reason"
|
||||
_description = "Rma Reason"
|
||||
|
||||
name = fields.Char(required=True, translate=True)
|
||||
description = fields.Text(translate=True)
|
||||
company_id = fields.Many2one(
|
||||
"res.company",
|
||||
required=True,
|
||||
readonly=True,
|
||||
default=lambda self: self.env.company,
|
||||
)
|
||||
allowed_operation_ids = fields.Many2many(
|
||||
comodel_name="rma.operation",
|
||||
string="Operations",
|
||||
help="List of RMA operations that are allowed when this reason is selected.",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue