diff options
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/product_product.xml | 16 | ||||
| -rwxr-xr-x | indoteknik_custom/views/product_template.xml | 15 |
2 files changed, 31 insertions, 0 deletions
diff --git a/indoteknik_custom/views/product_product.xml b/indoteknik_custom/views/product_product.xml index 6d547712..9dd1f0a4 100644 --- a/indoteknik_custom/views/product_product.xml +++ b/indoteknik_custom/views/product_product.xml @@ -20,5 +20,21 @@ <field name="state">code</field> <field name="code">model.action_sync_to_solr()</field> </record> + + <data noupdate="1"> + <record id="cron_variant_solr_flag_solr" model="ir.cron"> + <field name="name">Sync Variant 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_product"/> + <field name="code">model.variant_solr_flag_to_solr()</field> + <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 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 |
