[FIX] account_financial_report: Show records in general ledger when not grouped.
parent
afbb7a2d7c
commit
6d242b0d8a
|
@ -6,7 +6,7 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
{
|
||||
"name": "Account Financial Reports",
|
||||
"version": "15.0.2.0.1",
|
||||
"version": "15.0.2.1.0",
|
||||
"category": "Reporting",
|
||||
"summary": "OCA Financial Reports",
|
||||
"author": "Camptocamp SA,"
|
||||
|
|
|
@ -1144,7 +1144,7 @@ msgid "No limit"
|
|||
msgstr ""
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1155,7 +1155,7 @@ msgid "No limit"
|
|||
msgstr ""
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1160,7 +1160,7 @@ msgid "No limit"
|
|||
msgstr "Sense límit"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1173,7 +1173,7 @@ msgid "No limit"
|
|||
msgstr "Keine Einschränkung"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1167,7 +1167,7 @@ msgid "No limit"
|
|||
msgstr "Sin límite"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr "Ninguna"
|
||||
|
||||
|
|
|
@ -1166,7 +1166,7 @@ msgid "No limit"
|
|||
msgstr "Sin límite"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr "Ninguno"
|
||||
|
||||
|
|
|
@ -1137,7 +1137,7 @@ msgid "No limit"
|
|||
msgstr ""
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1162,7 +1162,7 @@ msgid "No limit"
|
|||
msgstr "Sans limite"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1172,7 +1172,7 @@ msgid "No limit"
|
|||
msgstr "Sans limite"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1157,7 +1157,7 @@ msgid "No limit"
|
|||
msgstr "Sans limite"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1133,7 +1133,7 @@ msgid "No limit"
|
|||
msgstr ""
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1141,7 +1141,7 @@ msgid "No limit"
|
|||
msgstr ""
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1174,7 +1174,7 @@ msgid "No limit"
|
|||
msgstr ""
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1134,7 +1134,7 @@ msgid "No limit"
|
|||
msgstr ""
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1181,7 +1181,7 @@ msgid "No limit"
|
|||
msgstr "geen limiet"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1140,7 +1140,7 @@ msgid "No limit"
|
|||
msgstr ""
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1152,7 +1152,7 @@ msgid "No limit"
|
|||
msgstr "Sem limite"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1179,7 +1179,7 @@ msgid "No limit"
|
|||
msgstr "Sem limite"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -1158,7 +1158,7 @@ msgid "No limit"
|
|||
msgstr "Nicio limită"
|
||||
|
||||
#. module: account_financial_report
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__none
|
||||
#: model:ir.model.fields.selection,name:account_financial_report.selection__general_ledger_report_wizard__grouped_by__
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
|
|
|
@ -436,6 +436,8 @@ class GeneralLedgerReport(models.AbstractModel):
|
|||
res.append({"id": tax_item.id, "name": tax_item.name})
|
||||
else:
|
||||
res.append({"id": 0, "name": "Missing Tax"})
|
||||
else:
|
||||
res.append({"id": 0, "name": ""})
|
||||
return res
|
||||
|
||||
def _get_period_ml_data(
|
||||
|
@ -519,13 +521,15 @@ class GeneralLedgerReport(models.AbstractModel):
|
|||
gen_ld_data[acc_id] = self._initialize_data(foreign_currency)
|
||||
gen_ld_data[acc_id]["id"] = acc_id
|
||||
gen_ld_data[acc_id]["mame"] = move_line["account_id"][1]
|
||||
gen_ld_data[acc_id][grouped_by] = False
|
||||
if grouped_by:
|
||||
gen_ld_data[acc_id][grouped_by] = False
|
||||
if acc_id in acc_prt_account_ids:
|
||||
item_ids = self._prepare_ml_items(move_line, grouped_by)
|
||||
for item in item_ids:
|
||||
item_id = item["id"]
|
||||
if item_id not in gen_ld_data[acc_id]:
|
||||
gen_ld_data[acc_id][grouped_by] = True
|
||||
if grouped_by:
|
||||
gen_ld_data[acc_id][grouped_by] = True
|
||||
gen_ld_data[acc_id][item_id] = self._initialize_data(
|
||||
foreign_currency
|
||||
)
|
||||
|
|
|
@ -78,7 +78,7 @@ class GeneralLedgerReportWizard(models.TransientModel):
|
|||
help="Ending account in a range",
|
||||
)
|
||||
grouped_by = fields.Selection(
|
||||
selection=[("none", "None"), ("partners", "Partners"), ("taxes", "Taxes")],
|
||||
selection=[("", "None"), ("partners", "Partners"), ("taxes", "Taxes")],
|
||||
default="partners",
|
||||
)
|
||||
show_cost_center = fields.Boolean(
|
||||
|
|
Loading…
Reference in New Issue