summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-08-24 14:47:44 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-08-24 14:47:44 +0700
commit8424fbdfd66c6eca58d546c256d57a61e258e930 (patch)
tree15b39d461c09d25cead61486ccef355739515d59 /indoteknik_custom/views
parentb173abf78bd52ba0cd10829e1a2b31efc371f3cf (diff)
solr categories homepage
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/website_categories_homepage.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/indoteknik_custom/views/website_categories_homepage.xml b/indoteknik_custom/views/website_categories_homepage.xml
index 0a7ef2c2..0a3f684b 100644
--- a/indoteknik_custom/views/website_categories_homepage.xml
+++ b/indoteknik_custom/views/website_categories_homepage.xml
@@ -49,6 +49,14 @@
</field>
</record>
+ <record id="website_categories_homepage_ir_actions_server" model="ir.actions.server">
+ <field name="name">Sync To Solr</field>
+ <field name="model_id" ref="indoteknik_custom.model_website_categories_homepage"/>
+ <field name="binding_model_id" ref="indoteknik_custom.model_website_categories_homepage"/>
+ <field name="state">code</field>
+ <field name="code">model.sync_to_solr()</field>
+ </record>
+
<menuitem
id="website_categories_homepage"
name="Website Categories Homepage"