summaryrefslogtreecommitdiff
path: root/indoteknik_custom
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-08-03 13:57:58 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-08-03 13:57:58 +0700
commit295dabd27518f3947994fb7cab39f6448db7aafa (patch)
tree36a41eb8ece2970e20729283bc00cd09bee26f96 /indoteknik_custom
parent4a670f1f85848ef46c605fd67ff4e3d305571522 (diff)
Update for_week to group_by_week on banner model, view, API
Diffstat (limited to 'indoteknik_custom')
-rwxr-xr-xindoteknik_custom/models/x_banner_banner.py12
-rwxr-xr-xindoteknik_custom/views/x_banner_banner.xml4
2 files changed, 8 insertions, 8 deletions
diff --git a/indoteknik_custom/models/x_banner_banner.py b/indoteknik_custom/models/x_banner_banner.py
index a9de2067..d6884c9b 100755
--- a/indoteknik_custom/models/x_banner_banner.py
+++ b/indoteknik_custom/models/x_banner_banner.py
@@ -18,9 +18,9 @@ class XBannerBanner(models.Model):
('tidak_tayang', 'Tidak Tayang')
], string="Status")
sequence = fields.Integer(string='Sequence')
- for_week = fields.Selection([
- ('1', 1),
- ('2', 2),
- ('3', 3),
- ('4', 4)
- ], string='For Week') \ No newline at end of file
+ group_by_week = fields.Selection([
+ ('1', '1'),
+ ('2', '2'),
+ ('3', '3'),
+ ('4', '4')
+ ], string='Group by Week') \ 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 10c762af..5e6526e0 100755
--- a/indoteknik_custom/views/x_banner_banner.xml
+++ b/indoteknik_custom/views/x_banner_banner.xml
@@ -7,7 +7,7 @@
<tree>
<field name="sequence" string="Seq" />
<field name="x_name" />
- <field name="for_week" />
+ <field name="group_by_week" />
<field name="x_banner_category" />
<field name="x_relasi_manufacture" />
<field name="x_url_banner" />
@@ -30,7 +30,7 @@
<field name="x_url_banner" />
<field name="x_status_banner" />
<field name="sequence" />
- <field name="for_week" />
+ <field name="group_by_week" />
</group>
<group>
<field name="background_color" />