Browse Source

[ADD] Initial Commit

pull/29/head
SHEREEF PT 8 years ago
parent
commit
d8a6876d56
  1. 22
      accounting_auditor/__init__.py
  2. 43
      accounting_auditor/__manifest__.py
  3. 18
      accounting_auditor/security/ir.model.access.csv
  4. BIN
      accounting_auditor/static/description/banner.jpg
  5. BIN
      accounting_auditor/static/description/cybro_logo.png
  6. BIN
      accounting_auditor/static/description/icon.png
  7. 83
      accounting_auditor/static/description/index.html
  8. BIN
      accounting_auditor/static/description/set_user.gif
  9. BIN
      accounting_auditor/static/description/working_auditor.gif
  10. 9
      accounting_auditor/views/auditor_group_view.xml
  11. 90
      accounting_auditor/views/view_menu_account.xml

22
accounting_auditor/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Niyas Raphy(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

43
accounting_auditor/__manifest__.py

@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Niyas Raphy(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Accounting Auditor',
'version': '10.0.1.0.0',
'summary': 'Addition of New Group for Account Auditing Purpose.',
'description': 'Addition of new group for account auditing purpose.',
'category': 'Accounting',
'author': "Cybrosys Techno Solutions",
'company': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['account_accountant', 'stock'],
'data': [
'views/auditor_group_view.xml',
'views/view_menu_account.xml',
'security/ir.model.access.csv',
],
'test': [],
'license': 'AGPL-3',
'images': ['static/description/banner.jpg'],
'installable': True,
'auto_install': False,
}

18
accounting_auditor/security/ir.model.access.csv

@ -0,0 +1,18 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
account_invoice_view,account.invoice.view,account.model_account_invoice,group_account_auditor,1,0,0,0
account_invoice_tax_view,account.invoice.tax.view,account.model_account_invoice_tax,group_account_auditor,1,0,0,0
account_move_line_view,account.move.line.view,account.model_account_move_line,group_account_auditor,1,0,0,0
account_move_view,account.move.view,account.model_account_move,group_account_auditor,1,0,0,0
account_financial_report_view,account.financial.report.view,account.model_account_financial_report,group_account_auditor,1,0,0,0
stock_move_view,stock.move.view,stock.model_stock_move,group_account_auditor,1,0,0,0
stock_warehouse_orderpoint_view,stock.warehouse.orderpoint.view,stock.model_stock_warehouse_orderpoint,group_account_auditor,1,0,0,0
account_payment_view,account.payment.view,account.model_account_payment,group_account_auditor,1,0,0,0
account_payment_method_view,account.payment.method.view,account.model_account_payment_method,group_account_auditor,1,0,0,0
res_partner_view,res.partner.view,base.model_res_partner,group_account_auditor,1,0,0,0
account_journal_view,account.journal.view,account.model_account_journal,group_account_auditor,1,0,0,0
account_account_type_view,account.account.type.view,account.model_account_account_type,group_account_auditor,1,0,0,0
account_account_view,account.account.view,account.model_account_account,group_account_auditor,1,0,0,0
account_bank_statement_view,account.bank_statement.view,account.model_account_bank_statement,group_account_auditor,1,0,0,0
account_partial_reconcile_view,account.partial.reconcile.view,account.model_account_partial_reconcile,group_account_auditor,1,0,0,0
account_reconcile_model_view,account.reconcile.model.view,account.model_account_reconcile_model,group_account_auditor,1,0,0,0
account_analytic_line_view,account.analytic.line.view,account.model_account_analytic_line,group_account_auditor,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 account_invoice_view account.invoice.view account.model_account_invoice group_account_auditor 1 0 0 0
3 account_invoice_tax_view account.invoice.tax.view account.model_account_invoice_tax group_account_auditor 1 0 0 0
4 account_move_line_view account.move.line.view account.model_account_move_line group_account_auditor 1 0 0 0
5 account_move_view account.move.view account.model_account_move group_account_auditor 1 0 0 0
6 account_financial_report_view account.financial.report.view account.model_account_financial_report group_account_auditor 1 0 0 0
7 stock_move_view stock.move.view stock.model_stock_move group_account_auditor 1 0 0 0
8 stock_warehouse_orderpoint_view stock.warehouse.orderpoint.view stock.model_stock_warehouse_orderpoint group_account_auditor 1 0 0 0
9 account_payment_view account.payment.view account.model_account_payment group_account_auditor 1 0 0 0
10 account_payment_method_view account.payment.method.view account.model_account_payment_method group_account_auditor 1 0 0 0
11 res_partner_view res.partner.view base.model_res_partner group_account_auditor 1 0 0 0
12 account_journal_view account.journal.view account.model_account_journal group_account_auditor 1 0 0 0
13 account_account_type_view account.account.type.view account.model_account_account_type group_account_auditor 1 0 0 0
14 account_account_view account.account.view account.model_account_account group_account_auditor 1 0 0 0
15 account_bank_statement_view account.bank_statement.view account.model_account_bank_statement group_account_auditor 1 0 0 0
16 account_partial_reconcile_view account.partial.reconcile.view account.model_account_partial_reconcile group_account_auditor 1 0 0 0
17 account_reconcile_model_view account.reconcile.model.view account.model_account_reconcile_model group_account_auditor 1 0 0 0
18 account_analytic_line_view account.analytic.line.view account.model_account_analytic_line group_account_auditor 1 0 0 0

BIN
accounting_auditor/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

BIN
accounting_auditor/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
accounting_auditor/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

83
accounting_auditor/static/description/index.html

@ -0,0 +1,83 @@
<section class="oe_container">
<div class="oe_spaced">
<h2 class="oe_slogan">Accounting Auditor</h2>
<h3 class="oe_slogan">Addition of a new group called Auditor.</h3>
<h3 class="oe_slogan">Users in this group will be given read only permission.</h3>
<h4 class="oe_slogan">Author : Cybrosys Techno Solutions , www.cybrosys.com</h4>
<div style="padding-left:66px;">
<h4>Features:</h4>
<ul>
<li style="list-style:none !important;"><span style="color:green;"> &#8594;</span>&nbsp;&nbsp;Only Read Permission</li>
<li style="list-style:none !important;"><span style="color:green;"> &#8594;</span>&nbsp;&nbsp; No Write Permission</li>
<li style="list-style:none !important;"><span style="color:green;"> &#8594;</span>&nbsp;&nbsp; No Create Permission</li>
</ul>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_spaced">
<div class="oe_picture">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32">
As Auditing is an important part of accounting we can create a new user who is having access right to
the accounting module with read only permission. This provides the user a provision to read all the
accounting related data but cannot edit or create any records.
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_spaced">
<div class="oe_picture">
<h3 class="oe_slogan">How to create an auditor user</h3>
<p class="oe_mt32">
<li style="list-style:none !important;"><span style="color:green;"> &#8594;</span>From the Users form view (Settings -> User) , set the user as Auditor by selecting the Auditor in the Accounting & Finance</li>
<li style="list-style:none !important;"><span style="color:green;"> &#8594;</span> Then remove the user from all the other groups</li>
</p>
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="set_user.gif">
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_spaced">
<div class="oe_picture">
<h3 class="oe_slogan">Audit User</h3>
<p class="oe_mt32">
<li style="list-style:none !important;"><span style="color:green;"> &#8594;</span>User is logged in as audit user</li>
</p>
<div class="oe_row_img oe_centered">
<img class="oe_picture oe_screenshot" src="working_auditor.gif">
</div>
</div>
</div>
</section>
<section class="oe_container">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="http://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="http://www.cybrosys.com/contact/"><i
class="fa fa-phone"></i> Contact Us </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="http://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
<div>
<a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;"></i></a></td>
<a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px;padding-left: 8px;"></i></a></td>
<a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;"></i></a></td>
<a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;"></i></a></td>
</div>
</div>
</section>

BIN
accounting_auditor/static/description/set_user.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 904 KiB

BIN
accounting_auditor/static/description/working_auditor.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

9
accounting_auditor/views/auditor_group_view.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="group_account_auditor" model="res.groups">
<field name="name">Auditor</field>
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
</record>
</data>
</odoo>

90
accounting_auditor/views/view_menu_account.xml

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_invoice_tree1'))]"/>
</record>
<record id="account.group_account_invoice" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_invoice_tree1'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_account_payments_receivable'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_account_customer'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_finance'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_account_moves_all'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_invoice_tree2'))]"/>
</record>
<record id="account.group_account_invoice" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_invoice_tree2'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_account_payments_payable'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_finance_entries'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_move_journal_line_form'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_board_journal_1'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_account_moves_all'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_general_ledger'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_move_journal_line_form'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_finance_reports'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.account_reports_management_menu'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.account_reports_business_intelligence_menu'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_finance_legal_statement'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_print_journal'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_partner_ledger'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_action_account_invoice_report_all'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_general_Balance_report'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_general_ledger'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_account_report_bs'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_account_report_pl'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_aged_trial_balance'))]"/>
</record>
<record id="group_account_auditor" model="res.groups">
<field name="menu_access" eval="[(4, ref('account.menu_account_report'))]"/>
</record>
</data>
</odoo>
Loading…
Cancel
Save