diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-10-07 16:45:26 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-10-07 16:45:26 +0700 |
| commit | fd6af0fbd83042c8471c3c58ff459f52bed45938 (patch) | |
| tree | 6347ce189fddfb37e2ab0d0c14751075ba2ca870 /indoteknik_custom/views | |
| parent | dd8f35133c24f84896a90dda343978d893ce5c4c (diff) | |
| parent | 6290e0e7a935c5084459843f8ba345ab9528d44c (diff) | |
Merge branch 'master' of bitbucket.org:altafixco/indoteknik-addons
Diffstat (limited to 'indoteknik_custom/views')
| -rwxr-xr-x | indoteknik_custom/views/product_template.xml | 11 | ||||
| -rwxr-xr-x | indoteknik_custom/views/sale_order.xml | 2 |
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"> |
