summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/product_template.xml
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2023-09-12 15:43:52 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2023-09-12 15:43:52 +0700
commit890be59e4dadafc6e25651fcb9de20e2b24379cc (patch)
treea699e771693a3f89633f01d1870aee11d0cb76c1 /indoteknik_custom/views/product_template.xml
parent888a3ca6337a1622f4f16b98b700cdd437ab6023 (diff)
Sync to solr product variant solr flag 2, Sync to solr product template solr flag 2
Diffstat (limited to 'indoteknik_custom/views/product_template.xml')
-rwxr-xr-xindoteknik_custom/views/product_template.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/indoteknik_custom/views/product_template.xml b/indoteknik_custom/views/product_template.xml
index b2939867..f4e74199 100755
--- a/indoteknik_custom/views/product_template.xml
+++ b/indoteknik_custom/views/product_template.xml
@@ -84,5 +84,20 @@
<field name="state">code</field>
<field name="code">model.action_sync_to_solr()</field>
</record>
+
+ <data noupdate="1">
+ <record id="cron_product_solr_flag_solr" model="ir.cron">
+ <field name="name">Sync Product To Solr: Solr Flag 2</field>
+ <field name="interval_number">10</field>
+ <field name="interval_type">minutes</field>
+ <field name="numbercall">-1</field>
+ <field name="doall" eval="False"/>
+ <field name="model_id" ref="model_product_template"/>
+ <field name="code" eval="('model.solr_flag_to_solr', ())"/>
+ <field name="state">code</field>
+ <field name="priority">55</field>
+ <field name="active">True</field>
+ </record>
+ </data>
</data>
</odoo> \ No newline at end of file