blob: 161438b6ffbda019905eee528c73a777ceb4f314 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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')
|