From b33103dea998552d110d029d7f50ed08f58ce192 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Wed, 18 Jan 2023 15:57:33 +0700 Subject: add payment term validation in sales order and add website ads --- indoteknik_custom/models/website_ads.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 indoteknik_custom/models/website_ads.py (limited to 'indoteknik_custom/models/website_ads.py') 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') -- cgit v1.2.3