# © 2020 Le Filament () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, fields, models class ProductTempleate(models.Model): _inherit = "product.template" is_returnable = fields.Boolean('Est une consigne') return_product_ids = fields.Many2many( 'product.product', 'product_returnable_rel', 'src_id', 'dest_id', domain=[('is_returnable', '=', True)], string='Consignes')