[MIG] website_rma: Migration to 13.0

This commit is contained in:
Ernesto Tejeda
2020-12-01 10:21:35 -05:00
committed by iwkse
parent 9f937c9462
commit 16b9dd427f
15 changed files with 874 additions and 29 deletions

View File

@@ -0,0 +1,21 @@
# Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Website(models.Model):
_inherit = "website"
rma_default_team_id = fields.Many2one(
comodel_name="rma.team",
string="Default Team",
help="Default team for new RMAs created through the 'Request RMA' form.",
)
rma_default_user_id = fields.Many2one(
comodel_name="res.users",
string="Default Responsible",
domain=[("share", "=", False)],
help="Default responsible for new leads created through the "
"'Request RMA' form.",
)