Browse Source

Uploaded

master
cybroodoo 9 years ago
parent
commit
23a5f71844
  1. 0
      taxless_purchase_sale/__init__.py
  2. 26
      taxless_purchase_sale/__openerp__.py
  3. 88
      taxless_purchase_sale/purchase_view.xml
  4. BIN
      taxless_purchase_sale/static/description/check_box.png
  5. BIN
      taxless_purchase_sale/static/description/icon.png
  6. 19
      taxless_purchase_sale/static/description/index.html
  7. BIN
      taxless_purchase_sale/static/description/sale_order.png

0
taxless_purchase_sale/__init__.py

26
taxless_purchase_sale/__openerp__.py

@ -0,0 +1,26 @@
{
'name': 'Taxless Sale & Purchase',
'version': '1.0',
'category': 'Purchase',
'sequence': 7,
'summary': 'hide Tax from Sales and Purchases',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': 'http://www.cybrosys.com',
'description': """
=======================
""",
'depends': ['base', 'sale', 'purchase', 'taxless_accounting'],
'data': [
'purchase_view.xml'
],
'demo': [
],
'installable': True,
'auto_install': False,
}

88
taxless_purchase_sale/purchase_view.xml

@ -0,0 +1,88 @@
<?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>

BIN
taxless_purchase_sale/static/description/check_box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
taxless_purchase_sale/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

19
taxless_purchase_sale/static/description/index.html

@ -0,0 +1,19 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Hide Tax From Sales and Purchases </h2>
<div class="oe_span6">
<p class="oe_mt32">
Hides tax related fields and menus from Sales and Purchases
</p>
<p>
This hiding happens in user level. If you check this option hidden things will become visible for that user
</p>
<hr>
</div>
<div class="oe_row_img oe_centered oe_mt32">
<img class="oe_picture oe_screenshot" src="check_box.png"><hr>
<img class="oe_picture oe_screenshot" src="sale_order.png">
</div>
</div>
</section>

BIN
taxless_purchase_sale/static/description/sale_order.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Loading…
Cancel
Save