summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-10-06 14:55:30 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-10-06 14:55:30 +0700
commit97b5798df4cba856d98715cea095fda414f434a9 (patch)
tree5397c4bf8b2782dfc285f0037843384a5abb4e07 /indoteknik_custom/views
parente2854b141338728d9d720fa9bd97dd44ab08d806 (diff)
Update product_template.py and product_template.xml
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