summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/website_ads.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2023-01-23 09:20:18 +0000
committerIT Fixcomart <it@fixcomart.co.id>2023-01-23 09:20:18 +0000
commitda5f5134f56b2ccf1c1de16c3f7616ab3719f3ea (patch)
treebc1bcb4fb00f2659be81810d528a9cf2cc6ce20d /indoteknik_custom/models/website_ads.py
parente52cf84fd2284330412162b44066f29bd382f590 (diff)
parent8af5ee591aabc2d5d946c0eece93a5caab989975 (diff)
Merged in release (pull request #27)
Release
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')