Files
manufacture/repair_refurbish/models/product_product.py
2020-03-19 13:23:01 +01:00

15 lines
380 B
Python

# Copyright 2020 ForgeFlow S.L.
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ProductProduct(models.Model):
_inherit = "product.product"
refurbish_product_id = fields.Many2one(
comodel_name="product.product",
string="Refurbished Product",
domain="[('type', '=', 'product')]",
)