forked from OCA/l10n-france
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] account_balance_ebp_csv_export v10 -> v12
- Loading branch information
1 parent
b45c698
commit 97566b4
Showing
6 changed files
with
15 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from . import wizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from . import trial_balance_wizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). | ||
--> | ||
|
@@ -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 | ||
|