diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-25 15:11:00 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-25 15:11:00 +0700 |
| commit | a9a3c3e8945dd11a0d81f64a5629876397a1e51d (patch) | |
| tree | e7d8850e7868b3f83e29f19bc37bcc9730922a4e /indoteknik_custom/views | |
| parent | 8424fbdfd66c6eca58d546c256d57a61e258e930 (diff) | |
Update sync solr function
Diffstat (limited to 'indoteknik_custom/views')
| -rw-r--r-- | indoteknik_custom/views/product_product.xml | 8 | ||||
| -rwxr-xr-x | indoteknik_custom/views/product_template.xml | 14 | ||||
| -rw-r--r-- | indoteknik_custom/views/website_categories_homepage.xml | 6 |
3 files changed, 24 insertions, 4 deletions
diff --git a/indoteknik_custom/views/product_product.xml b/indoteknik_custom/views/product_product.xml index d3ef3e15..3a10b4e0 100644 --- a/indoteknik_custom/views/product_product.xml +++ b/indoteknik_custom/views/product_product.xml @@ -12,5 +12,13 @@ </field> </field> </record> + + <record id="ir_actions_server_product_product_sync_to_solr" model="ir.actions.server"> + <field name="name">Sync to solr</field> + <field name="model_id" ref="product.model_product_product"/> + <field name="binding_model_id" ref="product.model_product_product"/> + <field name="state">code</field> + <field name="code">model.sync_to_solr()</field> + </record> </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 82b7ce4d..bbbcc4e1 100755 --- a/indoteknik_custom/views/product_template.xml +++ b/indoteknik_custom/views/product_template.xml @@ -9,11 +9,13 @@ <field name="categ_id" position="after"> <field name="web_tax_id"/> <field name="x_manufacture"/> - <field name="desc_update_solr"/> - <field name="last_update_solr"/> <field name="x_model_product"/> <field name="x_studio_field_tGhJR" widget="many2many_tags"/> </field> + <field name="uom_po_id" position="after"> + <field name="desc_update_solr" readonly="1" /> + <field name="last_update_solr" readonly="1" /> + </field> <page name="inventory" position="after"> <page string="Marketplace" name="marketplace"> <group> @@ -74,5 +76,13 @@ </field> </field> </record> + + <record id="ir_actions_server_product_template_sync_to_solr" model="ir.actions.server"> + <field name="name">Sync to solr</field> + <field name="model_id" ref="product.model_product_template"/> + <field name="binding_model_id" ref="product.model_product_template"/> + <field name="state">code</field> + <field name="code">model.sync_to_solr()</field> + </record> </data> </odoo>
\ No newline at end of file diff --git a/indoteknik_custom/views/website_categories_homepage.xml b/indoteknik_custom/views/website_categories_homepage.xml index 0a3f684b..bd64f201 100644 --- a/indoteknik_custom/views/website_categories_homepage.xml +++ b/indoteknik_custom/views/website_categories_homepage.xml @@ -16,6 +16,7 @@ <field name="category_id"/> <field name="url"/> <field name="status"/> + <field name="last_update_solr"/> </tree> </field> </record> @@ -33,6 +34,7 @@ <field name="image" widget="image"/> <field name="url"/> <field name="status"/> + <field name="last_update_solr" readonly="1" /> </group> </group> <notebook> @@ -49,8 +51,8 @@ </field> </record> - <record id="website_categories_homepage_ir_actions_server" model="ir.actions.server"> - <field name="name">Sync To Solr</field> + <record id="ir_actions_server_website_categories_homepage_sync_to_solr" 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> |
