diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-10-05 15:19:27 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-10-05 15:19:27 +0700 |
| commit | 14cb30c3f2fb8b15baaf32ab9fca7bb9bda73845 (patch) | |
| tree | e4039e13e934db6ee148f766882bb82af8db1d7a /indoteknik_custom/models | |
| parent | d1bc570eae2818bc4b535840f2eb3061b99ca98b (diff) | |
Update struktur API and fitur API flash sale
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/__init__.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/models/product_pricelist.py | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py index e4913205..36ff7b5e 100755 --- a/indoteknik_custom/models/__init__.py +++ b/indoteknik_custom/models/__init__.py @@ -24,3 +24,4 @@ from . import stock_move from . import stock_picking from . import stock_picking_type from . import delivery_order +from . import product_pricelist diff --git a/indoteknik_custom/models/product_pricelist.py b/indoteknik_custom/models/product_pricelist.py new file mode 100644 index 00000000..b70eb6e6 --- /dev/null +++ b/indoteknik_custom/models/product_pricelist.py @@ -0,0 +1,12 @@ +from odoo import models, fields, api +from odoo.exceptions import UserError + + +class ProductPricelist(models.Model): + _inherit = 'product.pricelist' + + is_flash_sale = fields.Boolean(string='Flash Sale', default=False) + banner = fields.Binary(string='Banner') + start_date = fields.Datetime(string='Start Date') + end_date = fields.Datetime(string='End Date') + |
