summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/product_pricelist.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/indoteknik_custom/models/product_pricelist.py b/indoteknik_custom/models/product_pricelist.py
index ea3ee6cf..46d12f4d 100644
--- a/indoteknik_custom/models/product_pricelist.py
+++ b/indoteknik_custom/models/product_pricelist.py
@@ -3,8 +3,9 @@ from datetime import datetime, timedelta
class ProductPricelist(models.Model):
- _inherit = 'product.pricelist'
-
+ _name = 'product.pricelist'
+ _inherit = ['product.pricelist', 'mail.thread', 'mail.activity.mixin']
+
is_flash_sale = fields.Boolean(string='Flash Sale', default=False)
is_show_program = fields.Boolean(string='Show Program', default=False)
banner = fields.Binary(string='Banner')
@@ -56,7 +57,8 @@ class ProductPricelist(models.Model):
return tier_name
class ProductPricelistItem(models.Model):
- _inherit = 'product.pricelist.item'
+ _name = 'product.pricelist.item'
+ _inherit = ['product.pricelist.item', 'mail.thread', 'mail.activity.mixin']
manufacture_id = fields.Many2one('x_manufactures', string='Manufacture')
computed_price = fields.Float(string='Computed Price') \ No newline at end of file