You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

88 lines
3.8 KiB

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!--purchase Order -->
<record id="purchase_inherit_form" model="ir.ui.view">
<field name="name">taxless.purchase.form</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='amount_untaxed']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='amount_tax']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='taxes_id']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
<!--sale Order-->
<record id="sale_inherit_form" model="ir.ui.view">
<field name="name">taxless.sale.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']/form/group/group/field[@name='tax_id']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='order_line']/tree/field[@name='tax_id']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='amount_untaxed']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='amount_tax']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
<!--products template-->
<record id="product_inherit_form" model="ir.ui.view">
<field name="name">taxhide.product.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='taxes_id']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='supplier_taxes_id']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
<!--products product-->
<record id="product_product_inherit_form" model="ir.ui.view">
<field name="name">taxhide..product.product.form</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='taxes_id']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='supplier_taxes_id']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
</data>
</openerp>