Files
stock-rma/rma/models/product.py
2020-01-14 16:35:26 +01:00

16 lines
598 B
Python

# © 2017 Eficent Business and IT Consulting Services 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(
comodel_name="rma.operation", string="Default RMA Customer Operation")
rma_supplier_operation_id = fields.Many2one(
comodel_name="rma.operation", string="Default RMA Supplier Operation")
rma_approval_policy = fields.Selection(
related="categ_id.rma_approval_policy", readonly=True)