summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/product_spec.py
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-01-04 14:52:28 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-01-04 14:52:28 +0700
commit7cc4bec031757d23c7f7f9e754fc2997d2dfd921 (patch)
tree2ace5dc432e04a4d8f91be276b3c8b83adda3935 /indoteknik_custom/models/product_spec.py
parent3a5407d507ff985e10b4675727643bf5af107d11 (diff)
parentb0f4f1875216bbb0347c082f38b91b59e5bbf50c (diff)
Merge branch 'release' into staging
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')