Adrien Peiffer (ACSONE)
8 years ago
committed by
David Beal
7 changed files with 245 additions and 301 deletions
-
76account_export_csv/README.rst
-
21account_export_csv/__init__.py
-
43account_export_csv/__manifest__.py
-
16account_export_csv/menu.xml
-
21account_export_csv/wizard/__init__.py
-
267account_export_csv/wizard/account_export_csv.py
-
102account_export_csv/wizard/account_export_csv_view.xml
@ -0,0 +1,76 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
================== |
|||
Account Export CSV |
|||
================== |
|||
|
|||
|
|||
Add a wizard that allow you to export a csv file based on accounting |
|||
journal entries |
|||
|
|||
- Trial Balance |
|||
- Analytic Balance (with accounts) |
|||
- Journal Entries |
|||
|
|||
You can filter by date range |
|||
|
|||
Installation |
|||
============ |
|||
|
|||
This module depends on date_range module in thta can be found in `server-tools <https://github.com/OCA/server-tools/tree/10.0/date_range#readme>`_. |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
|||
:alt: Try me on Runbot |
|||
:target: https://runbot.odoo-community.org/runbot/91/10.0 |
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
* rearange wizard view with only one button to generate file plus define a selection list to select report type |
|||
|
|||
Bug Tracker |
|||
=========== |
|||
|
|||
Bugs are tracked on `GitHub Issues |
|||
<https://github.com/OCA/account-financial-reporting/issues>`_. In case of trouble, please |
|||
check there if your issue has already been reported. If you spotted it first, |
|||
help us smash it by providing detailed and welcomed feedback. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
Images |
|||
------ |
|||
|
|||
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Yannick Vaucher <yannick.vaucher@camptocamp.com> |
|||
* Stéphane Bidoul <stephane.bidoul@acsone.eu> |
|||
* Vincent Renaville <vincent.renaville@camptocamp.com> |
|||
* Alexandre Fayolle <alexandre.fayolle@camptocamp.com> |
|||
* Guewen Baconnier <guewen.baconnier@camptocamp.com> |
|||
* Laetitia Gangloff <laetitia.gangloff@acsone.eu> |
|||
* Adrien Peiffer <adrien.peiffer@acsone.eu> |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
:target: https://odoo-community.org |
|||
|
|||
This module is maintained by the OCA. |
|||
|
|||
OCA, or the Odoo Community Association, is a nonprofit organization whose |
|||
mission is to support the collaborative development of Odoo features and |
|||
promote its widespread use. |
|||
|
|||
To contribute to this module, please visit https://odoo-community.org. |
@ -1,22 +1 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Author Joel Grand-Guillaume and Vincent Renaville Copyright 2013 |
|||
# Camptocamp SA |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# 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 Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from . import wizard |
@ -1,51 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Author Joel Grand-Guillaume and Vincent Renaville |
|||
# Copyright 2013 Camptocamp SA |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# 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 Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
# Copyright 2013 Camptocamp SA |
|||
# Copyright 2017 ACSONE SA/NV |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
{ |
|||
'name': 'Account Export CSV', |
|||
'version': '8.0.1.1.0', |
|||
'summary': "Adds accounting CSV export", |
|||
'version': '10.0.1.1.0', |
|||
'depends': [ |
|||
'account', |
|||
], |
|||
'author': "Camptocamp,Odoo Community Association (OCA)", |
|||
'description': """ |
|||
|
|||
Add a wizard that allow you to export a csv file based on accounting |
|||
journal entries |
|||
|
|||
- Trial Balance |
|||
- Analytic Balance (with accounts) |
|||
- Journal Entries |
|||
|
|||
You can filter by period |
|||
|
|||
TODO: rearange wizard view with only one button to generate file plus |
|||
define a selection list to select report type |
|||
""", |
|||
'website': 'http://www.camptocamp.com', |
|||
'license': 'AGPL-3', |
|||
'data': [ |
|||
'wizard/account_export_csv_view.xml', |
|||
'menu.xml', |
|||
], |
|||
'installable': False, |
|||
'active': False, |
|||
'installable': True, |
|||
} |
@ -1,16 +0,0 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<menuitem |
|||
icon="STOCK_EXECUTE" |
|||
name="Accounting CSV Export" |
|||
action="action_account_csv_export" |
|||
id="menu_account_csv_export" |
|||
parent="account.menu_finance_reports" |
|||
sequence="110" |
|||
/> |
|||
|
|||
|
|||
</data> |
|||
</openerp> |
@ -1,22 +1 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# Author Joel Grand-Guillaume and Vincent Renaville Copyright 2013 |
|||
# Camptocamp SA |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# 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 Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from . import account_export_csv |
@ -1,47 +1,69 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
<odoo> |
|||
|
|||
<record id="account_csv_export_view" model="ir.ui.view"> |
|||
<field name="name">Accounting Entries CSV Export</field> |
|||
<field name="model">account.csv.export</field> |
|||
<field name="type">form</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Accounting CSV Export" version="7.0"> |
|||
<group colspan="4"> |
|||
<record id="account_csv_export_view" model="ir.ui.view"> |
|||
<field name="name">Accounting Entries CSV Export</field> |
|||
<field name="model">account.csv.export</field> |
|||
<field name="type">form</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Accounting CSV Export"> |
|||
<group> |
|||
<group> |
|||
<field name="company_id" /> |
|||
<field name="fiscalyear_id" domain="[('company_id', '=', company_id)]"/> |
|||
</group> |
|||
<group colspan="4" col="2"> |
|||
<field name="periods" domain="[('fiscalyear_id','=',fiscalyear_id)]"/> |
|||
<field name="journal_ids"/> |
|||
</group> |
|||
<separator string ="Report" colspan="4"/> |
|||
<group colspan="4"> |
|||
<field name="data" filename="export_filename"/> |
|||
</group> |
|||
<footer> |
|||
<button name="action_manual_export_account" string="Trial Balance" type="object" icon="gtk-execute" class="oe_highlight"/> |
|||
<button name="action_manual_export_analytic" string="Analytic Balance (with accounts)" type="object" icon="gtk-execute" class="oe_highlight"/> |
|||
<button name="action_manual_export_journal_entries" string="Journal Entries" type="object" icon="gtk-execute" class="oe_highlight"/> |
|||
or |
|||
<button string="Close" class="oe_link" special="cancel" /> |
|||
</footer> |
|||
<group> |
|||
</group> |
|||
</group> |
|||
<group> |
|||
<group> |
|||
<field name="date_range_id" domain="['|', ('company_id', '=', company_id), ('company_id', '=', False)]"/> |
|||
<label for="date_start" string="Date" class="oe_inline"/> |
|||
<div> |
|||
<field name="date_start" class="oe_inline"/> |
|||
<label string="-" class="oe_inline"/> |
|||
<field name="date_end" class="oe_inline"/> |
|||
</div> |
|||
</group> |
|||
<group> |
|||
</group> |
|||
</group> |
|||
<div> |
|||
<label for="journal_ids" /> |
|||
<field name="journal_ids"/> |
|||
</div> |
|||
<separator string ="Report" colspan="4"/> |
|||
<group colspan="4"> |
|||
<field name="data" filename="export_filename"/> |
|||
</group> |
|||
<footer> |
|||
<button name="action_manual_export_account" string="Trial Balance" type="object" icon="fa-cog" class="oe_highlight"/> |
|||
<button name="action_manual_export_analytic" string="Analytic Balance (with accounts)" type="object" icon="fa-cog" class="oe_highlight"/> |
|||
<button name="action_manual_export_journal_entries" string="Journal Entries" type="object" icon="fa-cog" class="oe_highlight"/> |
|||
or |
|||
<button string="Close" class="oe_link" special="cancel" /> |
|||
</footer> |
|||
|
|||
</form> |
|||
</field> |
|||
</record> |
|||
|
|||
</form> |
|||
</field> |
|||
</record> |
|||
<record id="action_account_csv_export" model="ir.actions.act_window"> |
|||
<field name="name">Accounting CSV Export</field> |
|||
<field name="res_model">account.csv.export</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="view_id" ref="account_csv_export_view"/> |
|||
<field name="context">{}</field> |
|||
<field name="target">new</field> |
|||
</record> |
|||
|
|||
<record id="action_account_csv_export" model="ir.actions.act_window"> |
|||
<field name="name">Accounting CSV Export</field> |
|||
<field name="res_model">account.csv.export</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="view_type">form</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="view_id" ref="account_csv_export_view"/> |
|||
<field name="context">{}</field> |
|||
<field name="target">new</field> |
|||
</record> |
|||
<menuitem |
|||
name="Accounting CSV Export" |
|||
action="action_account_csv_export" |
|||
id="menu_account_csv_export" |
|||
parent="account.menu_finance_reports" |
|||
sequence="110" |
|||
/> |
|||
|
|||
</data> |
|||
</openerp> |
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue