7 changed files with 170 additions and 0 deletions
@ -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, |
|||
} |
After Width: | Height: | Size: 25 KiB |
@ -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> |
|||
|
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 38 KiB |
@ -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…
Reference in new issue