summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/website_ads.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/website_ads.py')
-rw-r--r--indoteknik_custom/models/website_ads.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/indoteknik_custom/models/website_ads.py b/indoteknik_custom/models/website_ads.py
new file mode 100644
index 00000000..ec360294
--- /dev/null
+++ b/indoteknik_custom/models/website_ads.py
@@ -0,0 +1,18 @@
+from odoo import fields, models
+
+
+class WebsiteAds(models.Model):
+ _name = 'website.ads'
+
+ sequence = fields.Integer(string='Sequence')
+ name = fields.Char(string='Name')
+ image = fields.Binary(string='Image')
+ url = fields.Char(string='URL')
+ page = fields.Selection([
+ ('product', 'Product'),
+ ('homepage', 'Home Page')
+ ], string='Page')
+ status = fields.Selection([
+ ('tayang', 'Tayang'),
+ ('tidak_tayang', 'Tidak Tayang')
+ ], string='Status')