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 | |
| parent | b2ac5d8be2d426dd968cbc9244377ecf3040800b (diff) | |
Banner Rest API & similar product method rest api
Diffstat (limited to 'indoteknik_custom')
| -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 | ||||
| -rwxr-xr-x | indoteknik_custom/views/coupon_program.xml | 3 | ||||
| -rwxr-xr-x | indoteknik_custom/views/x_banner_banner.xml | 2 | ||||
| -rwxr-xr-x | indoteknik_custom/views/x_banner_category.xml | 5 |
6 files changed, 8 insertions, 19 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') diff --git a/indoteknik_custom/views/coupon_program.xml b/indoteknik_custom/views/coupon_program.xml index e4ad0bd8..54449777 100755 --- a/indoteknik_custom/views/coupon_program.xml +++ b/indoteknik_custom/views/coupon_program.xml @@ -16,9 +16,6 @@ <field name="x_studio_image_promo" width="80" widget="image"/> <field name="x_studio_banner_promo" width="80" widget="image"/> </xpath> - <xpath expr="//form[1]/sheet[1]" position="inside"> - <field name="x_studio_field_xo3cl" string="Relasi Banner"/> - </xpath> </field> </record> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/x_banner_banner.xml b/indoteknik_custom/views/x_banner_banner.xml index f48b20c4..a83ae5ab 100755 --- a/indoteknik_custom/views/x_banner_banner.xml +++ b/indoteknik_custom/views/x_banner_banner.xml @@ -9,7 +9,6 @@ <field name="x_name"/> <field name="x_banner_category"/> <field name="x_relasi_manufacture"/> - <field name="x_studio_field_7ppSi"/> <field name="x_url_banner"/> <field name="x_status_banner"/> </tree> @@ -29,7 +28,6 @@ <field name="x_relasi_manufacture"/> <field name="x_url_banner"/> <field name="x_status_banner"/> - <field name="x_studio_field_7ppSi"/> </group> <group> <field name="x_banner_image" widget="image"/> diff --git a/indoteknik_custom/views/x_banner_category.xml b/indoteknik_custom/views/x_banner_category.xml index 0c2e053d..45ad7940 100755 --- a/indoteknik_custom/views/x_banner_category.xml +++ b/indoteknik_custom/views/x_banner_category.xml @@ -27,6 +27,11 @@ </group> <group></group> </group> + <notebook> + <page string="Banner"> + <field name="banner_ids"/> + </page> + </notebook> </sheet> </form> </field> |
