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
-rwxr-xr-xindoteknik_custom/views/sale_order.xml2
2 files changed, 12 insertions, 1 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
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index f83b2a6b..47f9b4a4 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -25,7 +25,7 @@
<xpath expr="//form/sheet/notebook/page/field[@name='order_line']/tree/field[@name='price_total']" position="after">
<field name="vendor_id" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}"/>
<field name="purchase_price" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}"/>
- <field name="purchase_tax_id" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}"/>
+ <field name="purchase_tax_id" attrs="{'readonly': [('parent.state', 'not in', ['draft', 'sent', 'sale'])]}" domain="[('type_tax_use','=','purchase')]"/>
<field name="item_percent_margin"/>
</xpath>
<field name="amount_total" position="after">