diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 14:17:27 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 14:17:27 +0700 |
| commit | 196d8939a3f1118fe0e635dd261d19f887c4be2d (patch) | |
| tree | 43663249f9c99d86516c2489b523c0209095a25b /indoteknik_custom/models | |
| parent | b2ac5d8be2d426dd968cbc9244377ecf3040800b (diff) | |
Banner Rest API & similar product method rest api
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/coupon_program.py | 10 | ||||
| -rwxr-xr-x | indoteknik_custom/models/x_banner_banner.py | 4 | ||||
| -rwxr-xr-x | indoteknik_custom/models/x_banner_category.py | 3 |
3 files changed, 3 insertions, 14 deletions
diff --git a/indoteknik_custom/models/coupon_program.py b/indoteknik_custom/models/coupon_program.py index 4c839c9f..033ee4a3 100755 --- a/indoteknik_custom/models/coupon_program.py +++ b/indoteknik_custom/models/coupon_program.py @@ -7,14 +7,4 @@ class CouponProgram(models.Model): x_studio_banner_promo = fields.Binary(string="Banner Promo") x_studio_field_2Ul77 = fields.Binary(string="Icon Program Promo 2") x_studio_field_Ifopn = fields.Binary(string="Icon Program Promo") - x_studio_field_xaRIr = fields.One2many( - comodel_name="x_banner.banner", - inverse_name="x_studio_field_7ppSi", - string="New One2many" - ) - x_studio_field_xo3cl = fields.One2many( - comodel_name="x_banner.banner", - inverse_name="x_studio_field_7ppSi", - string="Relasi Banner" - ) x_studio_image_promo = fields.Binary(string="Image Promo") diff --git a/indoteknik_custom/models/x_banner_banner.py b/indoteknik_custom/models/x_banner_banner.py index a402789a..bc80e2a9 100755 --- a/indoteknik_custom/models/x_banner_banner.py +++ b/indoteknik_custom/models/x_banner_banner.py @@ -10,11 +10,9 @@ class XBannerBanner(models.Model): 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 + ], string="Status")
\ No newline at end of file diff --git a/indoteknik_custom/models/x_banner_category.py b/indoteknik_custom/models/x_banner_category.py index 7c91bd78..fe4f6025 100755 --- a/indoteknik_custom/models/x_banner_category.py +++ b/indoteknik_custom/models/x_banner_category.py @@ -8,4 +8,5 @@ class XBannerCategory(models.Model): x_name = fields.Char(string="Name") x_banner_subtitle = fields.Char(string="Sub Title") - x_studio_field_KKVl4 = fields.Char(string="URL") + x_studio_field_KKVl4 = fields.Char(string="Slug") + banner_ids = fields.One2many('x_banner.banner', 'x_banner_category', 'Banner') |
