summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models')
-rwxr-xr-xindoteknik_custom/models/__init__.py1
-rw-r--r--indoteknik_custom/models/price_group.py28
2 files changed, 29 insertions, 0 deletions
diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py
index 5de392ca..255a12f6 100755
--- a/indoteknik_custom/models/__init__.py
+++ b/indoteknik_custom/models/__init__.py
@@ -80,3 +80,4 @@ from . import account_financial_report
from . import account_general_ledger
from . import account_report_financial
from . import account_report_general_ledger
+from . import price_group
diff --git a/indoteknik_custom/models/price_group.py b/indoteknik_custom/models/price_group.py
new file mode 100644
index 00000000..50f0520f
--- /dev/null
+++ b/indoteknik_custom/models/price_group.py
@@ -0,0 +1,28 @@
+from odoo import fields, models, api
+from odoo.exceptions import UserError
+import logging
+
+_logger = logging.getLogger(__name__)
+
+
+class PriceGroup(models.Model):
+ _name = 'price.group'
+
+ name = fields.Char(string='Name')
+ pricelist_id = fields.Many2one('product.pricelist', string='Price List')
+ group1 = fields.Float(string='Kelompok 1 (%)')
+ group2 = fields.Float(string='Kelompok 2 (%)')
+ group3 = fields.Float(string='Kelompok 3 (%)')
+ group4 = fields.Float(string='Kelompok 4 (%)')
+ group5 = fields.Float(string='Kelompok 5 (%)')
+
+class Manufacture(models.Model):
+ _inherit = 'x_manufactures'
+
+ pricing_group = fields.Selection([
+ ('group1', 'Kelompok 1'),
+ ('group2', 'Kelompok 2'),
+ ('group3', 'Kelompok 3'),
+ ('group4', 'Kelompok 4'),
+ ('group5', 'Kelompok 5'),
+ ], string='Pricing Group', copy=False)