diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-01-18 15:57:33 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-01-18 15:57:33 +0700 |
| commit | b33103dea998552d110d029d7f50ed08f58ce192 (patch) | |
| tree | 190b234940e662bcaee85e4edfaf87481ce1184d /indoteknik_custom/models/website_ads.py | |
| parent | 09c074be5de4fc10f6322303236b5919ff8234fb (diff) | |
add payment term validation in sales order and add website ads
Diffstat (limited to 'indoteknik_custom/models/website_ads.py')
| -rw-r--r-- | indoteknik_custom/models/website_ads.py | 18 |
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') |
