IMP add filter Not company on supplierinfo

This commit is contained in:
David Beal
2016-11-30 12:14:42 +01:00
parent 891c64bb1f
commit b41f188eb4
5 changed files with 69 additions and 48 deletions

View File

@@ -0,0 +1,12 @@
# coding: utf-8
# © 2015 David BEAL @ Akretion
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
class ProductSupplierinfo(models.Model):
_inherit = 'product.supplierinfo'
supplier_is_company = fields.Boolean(
comodel_name='res.partner', related='name.is_company')