diff --git a/account_hide_analytic_line/__init__.py b/account_hide_analytic_line/__init__.py new file mode 100644 index 0000000..40a96af --- /dev/null +++ b/account_hide_analytic_line/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/account_hide_analytic_line/__openerp__.py b/account_hide_analytic_line/__openerp__.py new file mode 100644 index 0000000..d8778b5 --- /dev/null +++ b/account_hide_analytic_line/__openerp__.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# © 2016 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Account Hide Analytic Lines', + 'version': '8.0.1.0.0', + 'category': 'Accounting & Finance', + 'license': 'AGPL-3', + 'summary': 'Hide analytic lines', + 'description': """ +Account Hide Analytic Lines +=========================== + +This module hides analytic lines. If you don't use timesheets, you should +not use analytic lines at all. Instead, you should only use +account move lines with the analytic account field (technical name: *analytic_account_id*). + +Why ? Because, when you change the analytic account on an account move line, +the analytic line is not updated by Odoo. So, if you use the report available in *Reporting > Accounting > Analytic Entries Analysis*, as this report is based on analytic lines, the results will not take into account the changes of analytic account that you made on some account move lines. + +This module has been written by Alexis de Lattre from Akretion +. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['account', 'base_usability'], + 'data': ['account_view.xml'], + 'installable': True, +} diff --git a/account_hide_analytic_line/account_view.xml b/account_hide_analytic_line/account_view.xml new file mode 100644 index 0000000..c693882 --- /dev/null +++ b/account_hide_analytic_line/account_view.xml @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + account_hide_analytic_line.account_move_line_form + account.move.line + + + + 1 + + + + + + account.entries.report.search: add groupby + account.entries.report + + + + + + + + + + + + account.entries.report + {'search_default_thisyear': 1, 'search_default_analytic_account_groupby': 1} + + [('analytic_account_id', '!=', False)] + + + + + diff --git a/base_usability/__openerp__.py b/base_usability/__openerp__.py index 7f336f5..538773a 100644 --- a/base_usability/__openerp__.py +++ b/base_usability/__openerp__.py @@ -45,11 +45,12 @@ It displays the Local modules by default in tree view (instead of Kanban) filter 'website': 'http://www.akretion.com', 'depends': ['base', 'mail'], 'data': [ + 'security/group.xml', + 'security/ir.model.access.csv', 'partner_view.xml', 'country_view.xml', 'module_view.xml', 'translation_view.xml', - 'security/ir.model.access.csv', ], 'installable': True, }