17 lines
508 B
Python
17 lines
508 B
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2017 Akretion (http://www.akretion.com).
|
|
# @author Sébastien BEAU <sebastien.beau@akretion.com>
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
|
|
from openerp import fields, models
|
|
|
|
|
|
class ProductTemplate(models.Model):
|
|
_inherit = 'product.template'
|
|
|
|
all_product_variant_ids = fields.One2many(
|
|
'product.product',
|
|
'product_tmpl_id',
|
|
'All Product Variant',
|
|
domain=['|', ('active', '=', False), ('active', '=', True)])
|