mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
23 lines
675 B
Python
23 lines
675 B
Python
# Copyright (C) 2017-20 ForgeFlow S.L.
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ProductTemplate(models.Model):
|
|
_inherit = "product.template"
|
|
|
|
rma_customer_operation_id = fields.Many2one(
|
|
company_dependent=True,
|
|
comodel_name="rma.operation",
|
|
string="Default RMA Customer Operation",
|
|
)
|
|
rma_supplier_operation_id = fields.Many2one(
|
|
company_dependent=True,
|
|
comodel_name="rma.operation",
|
|
string="Default RMA Supplier Operation",
|
|
)
|
|
rma_approval_policy = fields.Selection(
|
|
related="categ_id.rma_approval_policy", readonly=True
|
|
)
|