# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, models class ProductProduct(models.Model): _inherit = 'product.product' @api.multi def _need_procurement(self): for product in self: if product.type not in ['service', 'digital']: return True return super(ProductProduct, self)._need_procurement()