summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/product_template.xml
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-08-25 15:11:00 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-08-25 15:11:00 +0700
commita9a3c3e8945dd11a0d81f64a5629876397a1e51d (patch)
treee7d8850e7868b3f83e29f19bc37bcc9730922a4e /indoteknik_custom/views/product_template.xml
parent8424fbdfd66c6eca58d546c256d57a61e258e930 (diff)
Update sync solr function
Diffstat (limited to 'indoteknik_custom/views/product_template.xml')
-rwxr-xr-xindoteknik_custom/views/product_template.xml14
1 files changed, 12 insertions, 2 deletions
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