diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-03-12 02:49:52 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-03-12 02:49:52 +0000 |
| commit | 8899771cb6e4d39752a506e7aa95e5e388ff3a9f (patch) | |
| tree | f436cda35f861b8017823fe36e674fe5687d4fbb /indoteknik_custom/models/price_group.py | |
| parent | 29dfec334ebf6a15a8a66e4af564fd5d812d8d67 (diff) | |
| parent | 41056a3fcf9cf80ac3609ab32223ffbac5b3ad83 (diff) | |
Merged in production (pull request #135)
Production
Diffstat (limited to 'indoteknik_custom/models/price_group.py')
| -rw-r--r-- | indoteknik_custom/models/price_group.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indoteknik_custom/models/price_group.py b/indoteknik_custom/models/price_group.py index 2a1bbc91..1b1c817f 100644 --- a/indoteknik_custom/models/price_group.py +++ b/indoteknik_custom/models/price_group.py @@ -19,6 +19,22 @@ class PriceGroup(models.Model): group7 = fields.Float(string='Kelompok 7 (%)') group8 = fields.Float(string='Kelompok 8 (%)') + def collect_price_group(self): + PRICE_GROUP_ID = { + 'markup': 1, + 'tier_1': 2, + 'tier_2': 3, + 'tier_3': 4, + 'tier_4': 5, + 'tier_5': 6, + } + + result = {} + for key in PRICE_GROUP_ID: + result[key] = self.env['price.group'].browse(PRICE_GROUP_ID[key]) + + return result + class Manufacture(models.Model): _inherit = 'x_manufactures' |
