14 lines
424 B
Python
14 lines
424 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import models, fields
|
|
|
|
|
|
class SfQualityPoint(models.Model):
|
|
_inherit = 'quality.point'
|
|
|
|
product_ids = fields.Many2many(
|
|
'product.product', string='适用产品',
|
|
domain="[('type', 'in', "
|
|
"('product', 'consu')), '|', ('company_id', '=', False), ('company_id', '=', company_id)]", help=
|
|
"Quality Point will apply to every selected Products.")
|
|
|