summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-09-21 09:28:08 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-09-21 09:28:08 +0700
commitc357d6bd7586b0331b27dbe864179b1fad63bf2e (patch)
tree7e1108529023463bdfce9d2c10865346e20926f1 /indoteknik_custom/views
parent33166b60a9e0e6b236f39b26e53d925d2790e9db (diff)
Add banner category to solr, auto sync solr banner category, fix button uang muka
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/x_banner_banner.xml2
-rwxr-xr-xindoteknik_custom/views/x_banner_category.xml9
2 files changed, 10 insertions, 1 deletions
diff --git a/indoteknik_custom/views/x_banner_banner.xml b/indoteknik_custom/views/x_banner_banner.xml
index be9ae951..c90e718b 100755
--- a/indoteknik_custom/views/x_banner_banner.xml
+++ b/indoteknik_custom/views/x_banner_banner.xml
@@ -31,7 +31,7 @@
<field name="x_status_banner" />
<field name="sequence" />
<field name="group_by_week" />
- <field name="last_update_solr" />
+ <field name="last_update_solr" readonly="1"/>
</group>
<group>
<field name="background_color" />
diff --git a/indoteknik_custom/views/x_banner_category.xml b/indoteknik_custom/views/x_banner_category.xml
index 45ad7940..11feb207 100755
--- a/indoteknik_custom/views/x_banner_category.xml
+++ b/indoteknik_custom/views/x_banner_category.xml
@@ -24,6 +24,7 @@
<field name="x_name"/>
<field name="x_banner_subtitle"/>
<field name="x_studio_field_KKVl4"/>
+ <field name="last_update_solr" readonly="1"/>
</group>
<group></group>
</group>
@@ -49,6 +50,14 @@
</field>
</record>
+ <record id="ir_actions_server_x_banner_category_sync_to_solr" model="ir.actions.server">
+ <field name="name">Sync to solr</field>
+ <field name="model_id" ref="indoteknik_custom.model_x_banner_category"/>
+ <field name="binding_model_id" ref="indoteknik_custom.model_x_banner_category"/>
+ <field name="state">code</field>
+ <field name="code">model.action_sync_to_solr()</field>
+ </record>
+
<menuitem
id="menu_banner_category"
name="Banner Category"