mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
16 lines
598 B
Python
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)
|