summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/product_spec.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/product_spec.py')
-rw-r--r--indoteknik_custom/models/product_spec.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/indoteknik_custom/models/product_spec.py b/indoteknik_custom/models/product_spec.py
new file mode 100644
index 00000000..161438b6
--- /dev/null
+++ b/indoteknik_custom/models/product_spec.py
@@ -0,0 +1,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')