summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rwxr-xr-xindoteknik_custom/views/product_template.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/indoteknik_custom/views/product_template.xml b/indoteknik_custom/views/product_template.xml
index 78aac34a..d4fa8d57 100755
--- a/indoteknik_custom/views/product_template.xml
+++ b/indoteknik_custom/views/product_template.xml
@@ -36,5 +36,16 @@
</xpath>
</field>
</record>
+ <record id="product_template_product_form_inherit" model="ir.ui.view">
+ <field name="name">Product Template</field>
+ <field name="model">product.template</field>
+ <field name="inherit_id" ref="website_sale.product_template_form_view"/>
+ <field name="arch" type="xml">
+ <field name="website_ribbon_id" position="after">
+ <field name="last_calculate_rating" attrs="{'readonly': [('type', '=', 'product')]}"/>
+ <field name="product_rating" attrs="{'readonly': [('type', '=', 'product')]}"/>
+ </field>
+ </field>
+ </record>
</data>
</odoo> \ No newline at end of file