from odoo import fields, models, api from datetime import datetime, timedelta import logging _logger = logging.getLogger(__name__) class ProductTemplateSpec(models.Model): _name = 'product.template.spec' product_tmpl_id = fields.Many2one('product.template', string='Product Template') attribute = fields.Char(string='Attribute', help='Attribute of Product') value = fields.Char(string='Values', help='Value of Attribute') class ProductVariantSpec(models.Model): _name = 'product.variant.spec' product_variant_id = fields.Many2one('product.product', string='Product Variant') attribute = fields.Char(string='Attribute', help='Attribute of Product') value = fields.Char(string='Values', help='Value of Attribute')