diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:21:18 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 17:21:18 +0700 |
| commit | 803e4f8b3cf9c1d6a43a354023edc1e065f4121e (patch) | |
| tree | b462ac26fd679c449f848dc8a2de7fc1b8fe3c5c /indoteknik_custom/models/x_banner_banner.py | |
| parent | 37c91dd605b4ff1acc9941eed549164eb7de2089 (diff) | |
initial commit 2
Diffstat (limited to 'indoteknik_custom/models/x_banner_banner.py')
| -rw-r--r-- | indoteknik_custom/models/x_banner_banner.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/indoteknik_custom/models/x_banner_banner.py b/indoteknik_custom/models/x_banner_banner.py new file mode 100644 index 00000000..a402789a --- /dev/null +++ b/indoteknik_custom/models/x_banner_banner.py @@ -0,0 +1,20 @@ +from odoo import fields, models + + +class XBannerBanner(models.Model): + _name = "x_banner.banner" + _description = "Banner" + _rec_name = "x_name" + + x_name = fields.Char(string="Name") + x_url_banner = fields.Char(string="URL Banner") + x_banner_image = fields.Binary(string="Image") + x_banner_category = fields.Many2one('x_banner.category', string="Banner Category") + # x_banner_tags = fields.Many2many('blog.tag', string="Banner Tags") + x_relasi_manufacture = fields.Many2one('x_manufactures', string="Relasi Merek") + x_sequence_banner = fields.Integer(string="Sequence") + x_status_banner = fields.Selection([ + ('tayang', 'Tayang'), + ('tidak_tayang', 'Tidak Tayang') + ], string="Status") + x_studio_field_7ppSi = fields.Many2one('coupon.program', string="Coupon Program")
\ No newline at end of file |
