summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views/product_template.xml
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-08-29 11:15:58 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-08-29 11:15:58 +0700
commita1400f8ccdfb829a4193c5e8d3f910211e0d5830 (patch)
tree4211e0c4acbffba80f56c2c8e15085c22bbfadbc /indoteknik_custom/views/product_template.xml
parent203feb6018c55c108c31f4c0e03d38a8f39af52e (diff)
parent6ed2316f6aa446bcd5bc7e6cd4d0c0a1136096dd (diff)
Merge branch 'change/feature/sync-solr' into production
Diffstat (limited to 'indoteknik_custom/views/product_template.xml')
-rwxr-xr-xindoteknik_custom/views/product_template.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/indoteknik_custom/views/product_template.xml b/indoteknik_custom/views/product_template.xml
index 558805b1..b2939867 100755
--- a/indoteknik_custom/views/product_template.xml
+++ b/indoteknik_custom/views/product_template.xml
@@ -12,6 +12,10 @@
<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>
@@ -72,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.action_sync_to_solr()</field>
+ </record>
</data>
</odoo> \ No newline at end of file