8 lines
241 B
Python
8 lines
241 B
Python
from odoo import models, fields
|
|
|
|
class ProductProduct(models.Model):
|
|
_inherit = 'product.product'
|
|
|
|
# 是否客供料
|
|
is_customer_provided = fields.Boolean(string='是否客供料', related='product_tmpl_id.is_customer_provided')
|