diff --git a/account_financial_report_qweb_usability/__init__.py b/account_financial_report_qweb_usability/__init__.py new file mode 100644 index 0000000..3b4c3ed --- /dev/null +++ b/account_financial_report_qweb_usability/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import wizard diff --git a/account_financial_report_qweb_usability/__manifest__.py b/account_financial_report_qweb_usability/__manifest__.py new file mode 100644 index 0000000..41f5b55 --- /dev/null +++ b/account_financial_report_qweb_usability/__manifest__.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# © 2015-2016 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Account Financial Report Qweb Usability', + 'version': '10.0.1.0.0', + 'category': 'Accounting & Finance', + 'license': 'AGPL-3', + 'summary': 'Small usability enhancements in account_financial_report_qweb module', + 'description': """ +Account Financial Report Usability +================================== + +The usability enhancements include: +TODO + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': [ + 'account_financial_report_qweb', + ], + 'data': [], + 'installable': True, +} diff --git a/account_financial_report_qweb_usability/wizard/__init__.py b/account_financial_report_qweb_usability/wizard/__init__.py new file mode 100644 index 0000000..eb24f59 --- /dev/null +++ b/account_financial_report_qweb_usability/wizard/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- + +from . import general_ledger_wizard +from . import open_items_wizard diff --git a/account_financial_report_qweb_usability/wizard/general_ledger_wizard.py b/account_financial_report_qweb_usability/wizard/general_ledger_wizard.py new file mode 100644 index 0000000..aa10ce2 --- /dev/null +++ b/account_financial_report_qweb_usability/wizard/general_ledger_wizard.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright 2019 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class GeneralLedgerReportWizard(models.TransientModel): + _inherit = 'general.ledger.report.wizard' + + foreign_currency = fields.Boolean(default=False) + + def onchange_partner_ids(self): + # Neutralize native onchange method + return diff --git a/account_financial_report_qweb_usability/wizard/open_items_wizard.py b/account_financial_report_qweb_usability/wizard/open_items_wizard.py new file mode 100644 index 0000000..f66ab5d --- /dev/null +++ b/account_financial_report_qweb_usability/wizard/open_items_wizard.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# Copyright 2019 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class OpenItemsReportWizard(models.TransientModel): + _inherit = "open.items.report.wizard" + + foreign_currency = fields.Boolean(default=False)