Browse Source

uploaded taxless_accounting

pull/81/head
cybroodoo 9 years ago
parent
commit
ef516526e2
  1. 0
      taxless_accounting/__init__.py
  2. 26
      taxless_accounting/__openerp__.py
  3. BIN
      taxless_accounting/static/description/icon.png
  4. 19
      taxless_accounting/static/description/index.html
  5. BIN
      taxless_accounting/static/description/tax_config.png
  6. BIN
      taxless_accounting/static/description/tax_invoice.png
  7. 125
      taxless_accounting/views/account_view.xml

0
taxless_accounting/__init__.py

26
taxless_accounting/__openerp__.py

@ -0,0 +1,26 @@
{
'name': 'Taxless Accounting',
'version': '1.0',
'category': 'Accounting',
'sequence': 6,
'summary': 'Lets hide Tax from Accounting',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'website': 'http://www.cybrosys.com',
'description': """
=======================
""",
'depends': ['account','base','account_voucher'],
'data': [
'views/account_view.xml',
],
'demo': [
],
'installable': True,
'auto_install': False,
}

BIN
taxless_accounting/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

19
taxless_accounting/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 Accounting </h2>
<div class="oe_span6">
<p class="oe_mt32">
Hides tax related fields and menus from accounting
</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="tax_config.png"><hr>
<img class="oe_picture oe_screenshot" src="tax_invoice.png">
</div>
</div>
</section>

BIN
taxless_accounting/static/description/tax_config.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
taxless_accounting/static/description/tax_invoice.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

125
taxless_accounting/views/account_view.xml

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="make_visible" model="res.groups">
<field name="name">Tax Visible</field>
</record>
</data>
<data>
<!--customer invoice-->
<record id="account_invoice_inherit_form" model="ir.ui.view">
<field name="name">tax.account.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_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='invoice_line_ids']/tree/field[@name='invoice_line_tax_ids']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='tax_line_ids']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
<!--supplier invoice-->
<record id="invoice_supplier_inherit_view" model="ir.ui.view">
<field name="name">tax.account.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_line_ids']/tree/field[@name='invoice_line_tax_ids']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='tax_line_ids']" 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='amount_untaxed']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
<!-- invoice line form-->
<record id="invoice_line_inherit_view" model="ir.ui.view">
<field name="name">tax.account.invoice.line.form</field>
<field name="model">account.invoice.line</field>
<field name="inherit_id" ref="account.view_invoice_line_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_line_tax_ids']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
<!--customer receipts-->
<record id="customer_account_voucher_inherited_view" model="ir.ui.view">
<field name="name">customer_account_voucher_inherit_view</field>
<field name="model">account.voucher</field>
<field name="inherit_id" ref="account_voucher.view_sale_receipt_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='tax_ids']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='tax_amount']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
<!--supplier receipts-->
<record id="supplier_account_voucher_inherited_view" model="ir.ui.view">
<field name="name">supplier_account_voucher_inherit_view</field>
<field name="model">account.voucher</field>
<field name="inherit_id" ref="account_voucher.view_purchase_receipt_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='tax_ids']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='tax_amount']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='tax_correction']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
<record id="tax_account_fiscal_position_inherited_view" model="ir.ui.view">
<field name="name">tax.account.fiscal.position.inherit.view</field>
<field name="model">account.fiscal.position</field>
<field name="inherit_id" ref="account.view_account_position_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='tax_mapping']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
<xpath expr="//field[@name='tax_ids']" position="attributes">
<attribute name="groups">taxless_accounting.make_visible</attribute>
</xpath>
</field>
</record>
<menuitem
action="account.action_tax_form"
id="account.menu_action_tax_form"
parent="account.account_account_menu"
sequence="1"
groups="make_visible"/>
</data>
</openerp>
Loading…
Cancel
Save