# © 2015-2016 Akretion (http://www.akretion.com) # @author Alexis de Lattre # @author Raphaël Valyi # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo import models, fields class ProductSupplierinfo(models.Model): _inherit = 'product.supplierinfo' name = fields.Many2one( domain=[('supplier', '=', True), ('parent_id', '=', False)])