Skip to content

Commit

Permalink
[MIG] account_balance_ebp_csv_export v10 -> v12
Browse files Browse the repository at this point in the history
  • Loading branch information
alexis-via authored and Alexis de Lattre committed Feb 1, 2021
1 parent b45c698 commit 97566b4
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
2 changes: 0 additions & 2 deletions account_balance_ebp_csv_export/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# -*- coding: utf-8 -*-

from . import wizard
13 changes: 5 additions & 8 deletions account_balance_ebp_csv_export/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# -*- coding: utf-8 -*-
# © 2014-2018 Akretion (Alexis de Lattre <[email protected]>)
# Copyright 2014-2019 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Account Balance EBP CSV export',
'version': '10.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Accounting',
'license': 'AGPL-3',
'author': 'Akretion,Odoo Community Association (OCA)',
'website': 'http://www.akretion.com',
'depends': [
'account_financial_report_qweb',
'report_qweb_txt',
],
'website': 'https://github.com/OCA/l10n-france',
'depends': ['account_financial_report'],
'data': [
'report.xml',
'report/balance_ebp_csv.xml',
Expand Down
4 changes: 2 additions & 2 deletions account_balance_ebp_csv_export/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

<report
id="action_report_trial_balance_ebp_csv"
model="report_trial_balance_qweb"
model="report_trial_balance"
string="EBP CSV Balance"
report_type="qweb-txt-csv"
report_type="qweb-text"
name="account_balance_ebp_csv_export.report_trial_balance_ebp_csv"
file="account_balance_ebp_csv_export.report_trial_balance_ebp_csv"
/>
Expand Down
2 changes: 0 additions & 2 deletions account_balance_ebp_csv_export/wizard/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# -*- coding: utf-8 -*-

from . import trial_balance_wizard
12 changes: 6 additions & 6 deletions account_balance_ebp_csv_export/wizard/trial_balance_wizard.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# © 2016-2018 Akretion France
# Copyright 2016-2019 Akretion France (http://www.akretion.com/)
# @author: Sébastien Beau <[email protected]>
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
Expand All @@ -11,10 +10,11 @@ class TrialBalanceReportWizard(models.TransientModel):
_inherit = 'trial.balance.report.wizard'

def button_export_ebp_csv(self):
rtbqo = self.env['report_trial_balance_qweb']
rtbqo = self.env['report_trial_balance']
report = rtbqo.create(self._prepare_report_trial_balance())
report.compute_data_for_report()
action = self.env['report'].get_action(
docids=report.ids, report_name='account_balance_ebp_csv_export.'
'report_trial_balance_ebp_csv')
ir_report = self.env.ref(
'account_balance_ebp_csv_export.'
'action_report_trial_balance_ebp_csv')
action = ir_report.report_action(report, config=False)
return action
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
© 2014-2018 Akretion (http://www.akretion.com/)
Copyright 2014-2019 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
Expand All @@ -11,7 +11,7 @@
<record id="trial_balance_wizard" model="ir.ui.view">
<field name="name">trial.balance.ebp.csv.button</field>
<field name="model">trial.balance.report.wizard</field>
<field name="inherit_id" ref="account_financial_report_qweb.trial_balance_wizard"/>
<field name="inherit_id" ref="account_financial_report.trial_balance_wizard"/>
<field name="arch" type="xml">
<button name="button_export_xlsx" position="after">
or
Expand Down

0 comments on commit 97566b4

Please sign in to comment.