mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
17 lines
460 B
Python
17 lines
460 B
Python
# Copyright 2020 Tecnativa - Ernesto Tejeda
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class RmaOperation(models.Model):
|
|
_name = "rma.operation"
|
|
_description = "RMA requested operation"
|
|
|
|
active = fields.Boolean(default=True)
|
|
name = fields.Char(required=True, translate=True)
|
|
|
|
_sql_constraints = [
|
|
("name_uniq", "unique (name)", "That operation name already exists !"),
|
|
]
|