8 changed files with 248 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': [ |
||||
|
'account_view.xml', |
||||
|
|
||||
|
], |
||||
|
'demo': [ |
||||
|
], |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
} |
@ -0,0 +1,203 @@ |
|||||
|
<?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_vinherit_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_tax']" position="attributes"> |
||||
|
<attribute name="groups">taxless_accounting.make_visible</attribute> |
||||
|
</xpath> |
||||
|
<label for="amount_tax" position="replace"> |
||||
|
</label> |
||||
|
<xpath expr="//field[@name='invoice_line']/tree/field[@name='invoice_line_tax_id']" position="attributes"> |
||||
|
<attribute name="groups">taxless_accounting.make_visible</attribute> |
||||
|
</xpath> |
||||
|
<xpath expr="//field[@name='tax_line']" 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">discount.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']/tree/field[@name='invoice_line_tax_id']" position="attributes"> |
||||
|
<attribute name="groups">taxless_accounting.make_visible</attribute> |
||||
|
</xpath> |
||||
|
<label for="amount_tax" position="replace"> |
||||
|
</label> |
||||
|
<xpath expr="//field[@name='tax_line']" 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> |
||||
|
<!--account customer refund form--> |
||||
|
<record id="account_invoice_refund_inherit_form" model="ir.ui.view"> |
||||
|
<field name="name">sale_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='invoice_line']/tree/field[@name='invoice_line_tax_id']" 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> |
||||
|
|
||||
|
<!--account supplier refund form--> |
||||
|
<record id="account_invoice_refund_inherit_form" model="ir.ui.view"> |
||||
|
<field name="name">sale_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']/tree/field[@name='invoice_line_tax_id']" 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='tax_line']" 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_id']" 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_id']" 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> |
||||
|
|
||||
|
<!--journal entries--> |
||||
|
<record id="account_move_inherited_view" model="ir.ui.view"> |
||||
|
<field name="name">account_move_voucher_inherit_view</field> |
||||
|
<field name="model">account.move</field> |
||||
|
<field name="inherit_id" ref="account.view_move_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//field[@name='line_id']/tree/field[@name='tax_code_id']" position="attributes"> |
||||
|
<attribute name="groups">taxless_accounting.make_visible</attribute> |
||||
|
</xpath> |
||||
|
<xpath expr="//field[@name='line_id']/tree/field[@name='tax_amount']" position="attributes"> |
||||
|
<attribute name="groups">taxless_accounting.make_visible</attribute> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<menuitem |
||||
|
id="account.account_template_taxes" |
||||
|
name="Taxes" |
||||
|
parent="account.account_template_folder" |
||||
|
groups="make_visible" |
||||
|
sequence="2"/> |
||||
|
<menuitem |
||||
|
id="account.menu_tax_report" |
||||
|
name="Taxes" |
||||
|
groups="make_visible" |
||||
|
parent="account.menu_finance_generic_reporting" |
||||
|
sequence="3"/> |
||||
|
<menuitem |
||||
|
action="account.action_tax_form" |
||||
|
id="account.menu_action_tax_form" |
||||
|
parent="account.next_id_27" |
||||
|
groups="make_visible"/> |
||||
|
<menuitem |
||||
|
name="Taxes Report" |
||||
|
parent="account.menu_tax_report" |
||||
|
groups="make_visible" |
||||
|
action="account.action_account_vat_declaration" |
||||
|
id="account.menu_account_vat_declaration" |
||||
|
icon="STOCK_PRINT"/> |
||||
|
<menuitem |
||||
|
action="account.action_tax_code_list" |
||||
|
id="account.menu_action_tax_code_list" |
||||
|
parent="account.next_id_27" |
||||
|
sequence="12" |
||||
|
groups="make_visible"/> |
||||
|
<menuitem |
||||
|
icon="STOCK_INDENT" |
||||
|
action="account.action_account_tax_chart" |
||||
|
id="account.menu_action_tax_code_tree" |
||||
|
parent="account.menu_finance_charts" |
||||
|
groups="make_visible" |
||||
|
sequence="12"/> |
||||
|
<menuitem |
||||
|
action="account.action_account_tax_template_form" |
||||
|
id="account.menu_action_account_tax_template_form" |
||||
|
parent="account.account_template_taxes" |
||||
|
groups="make_visible" |
||||
|
sequence="13"/> |
||||
|
<menuitem |
||||
|
action="account.action_account_tax_code_template_form" |
||||
|
id="account.menu_action_account_tax_code_template_form" |
||||
|
parent="account.account_template_taxes" |
||||
|
groups="make_visible" |
||||
|
sequence="14"/> |
||||
|
<menuitem |
||||
|
id="account.next_id_27" |
||||
|
name="Taxes" |
||||
|
parent="account.menu_finance_configuration" |
||||
|
groups="make_visible" |
||||
|
sequence="20"/> |
||||
|
<menuitem |
||||
|
action="account.action_account_fiscal_position_template_form" |
||||
|
id="account.menu_action_account_fiscal_position_form_template" |
||||
|
parent="account.account_template_taxes" |
||||
|
groups="make_visible" |
||||
|
sequence="20"/> |
||||
|
<menuitem |
||||
|
action="account.action_account_fiscal_position_form" |
||||
|
id="account.menu_action_account_fiscal_position_form" |
||||
|
parent="account.next_id_27" |
||||
|
groups="make_visible" |
||||
|
sequence="20"/> |
||||
|
|
||||
|
</data> |
||||
|
</openerp> |
After Width: | Height: | Size: 48 KiB |
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="check_box.png"><hr> |
||||
|
<img class="oe_picture oe_screenshot" src="tax_invoice.png"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
|
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 66 KiB |
Loading…
Reference in new issue