Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] fiscal_company_account: disable dashboard #77

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fiscal_company_account/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"data": [
"security/ir_rule.xml",
# "views/menu.xml",
"views/menu.xml",
# "views/view_account_move.xml",
# "views/view_res_partner.xml",
],
Expand Down
2 changes: 2 additions & 0 deletions fiscal_company_account/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ status for french companies.
* Following fields property are propagated in all the fiscal child company:
* product_category / property_account_income_categ_id;
* product_category / property_account_expense_categ_id;

* Hide the Account Dashboard menu.
2 changes: 1 addition & 1 deletion fiscal_company_account/views/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<!--
Disable account journal kanban view because the function get_line_graph_datas
and get_journal_dashboard_datas are hard coded with SQL request. So security
is not ensured
is not ensured and data are wrong.
-->
<record id="account.menu_board_journal_1" model="ir.ui.menu">
<field name="groups_id" eval="[(6, 0, [ref('fiscal_company_base.fiscal_company_disabled_feature')])]"/>
Expand Down
1 change: 1 addition & 0 deletions fiscal_company_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
],
"data": [
"security/ir_rule.xml",
"security/res_groups.xml",
"views/view_res_company.xml",
],
"demo": [
Expand Down
19 changes: 0 additions & 19 deletions fiscal_company_base/security/ir_rule.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,4 @@ Copyright (C) 2013-Today GRAP (http://www.grap.coop)
</field>
</record>

<!--
recreate a new rule, because base.res_partner_rule is noupdatable
and to prevent errors, when uninstalling module
-->
<!-- <record id="res_partner_rule" model="ir.rule">
<field name="name">res.partner CAE company</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="domain_force">[
'|', '|', '|', '|', '|',
('company_id', '=', user.company_id.id),
('company_id', '=', user.company_id.fiscal_company_id.id),
('company_id', 'in', [c.id for c in user.company_id.fiscal_child_ids]),
('company_id', '=', False),
('is_odoo_user', '=', True),
('is_odoo_company', '=', True),
]</field>

</record> -->

</odoo>
16 changes: 16 additions & 0 deletions fiscal_company_base/security/res_groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2013-Today GRAP (http://www.grap.coop)
@author Julien Weste
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->

<odoo>

<record id="fiscal_company_disabled_feature" model="res.groups">
<field name="name">Disabled Features (Fiscal Company)</field>
<field name="category_id" ref="base.module_category_usability" />
</record>

</odoo>
Loading