diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-01-04 14:52:28 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-01-04 14:52:28 +0700 |
| commit | 7cc4bec031757d23c7f7f9e754fc2997d2dfd921 (patch) | |
| tree | 2ace5dc432e04a4d8f91be276b3c8b83adda3935 /indoteknik_custom/models/website_content.py | |
| parent | 3a5407d507ff985e10b4675727643bf5af107d11 (diff) | |
| parent | b0f4f1875216bbb0347c082f38b91b59e5bbf50c (diff) | |
Merge branch 'release' into staging
Diffstat (limited to 'indoteknik_custom/models/website_content.py')
| -rw-r--r-- | indoteknik_custom/models/website_content.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/indoteknik_custom/models/website_content.py b/indoteknik_custom/models/website_content.py new file mode 100644 index 00000000..e94076f8 --- /dev/null +++ b/indoteknik_custom/models/website_content.py @@ -0,0 +1,34 @@ +from odoo import fields, models, api +import logging + +_logger = logging.getLogger(__name__) + + +class WebsiteContent(models.Model): + _name = 'website.content' + + sequence = fields.Integer(string='Sequence') + slide_type = fields.Selection([ + ('document', 'Document'), + ('infographic', 'Infographic'), + ('presentation', 'Presentation'), + ('video', 'Video') + ]) + name = fields.Char(string='Name') + url = fields.Char(string='URL') + channel_id = fields.Many2one('website.content.channel', string='Channel') + status = fields.Selection([ + ('tayang', 'Tayang'), + ('tidak_tayang', 'Tidak Tayang') + ], string='Status') + + +class WebsiteContentChannel(models.Model): + _name = 'website.content.channel' + + name = fields.Char(string='Name') + description_html = fields.Html('Description', sanitize_attributes=False, sanitize_form=False) + visibility = fields.Selection([ + ('public', 'Public'), + ('internal', 'Internal') + ]) |
