odoo-addon-account-financial-report 15.0.2.12.1.2__py3-none-any.whl → 15.0.3.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of odoo-addon-account-financial-report might be problematic. Click here for more details.

@@ -7,7 +7,7 @@ Account Financial Reports
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:80acd6b2fff0b0817cc7e978b4eb91669c3e6a9d6e1289d4721e8a790f858f1c
10
+ !! source digest: sha256:7a729cad2177a2d79dea23692b620f65ca49b3f28348bb0f191cd074fdb4bf41
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -6,7 +6,7 @@
6
6
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
7
7
  {
8
8
  "name": "Account Financial Reports",
9
- "version": "15.0.2.12.1",
9
+ "version": "15.0.3.0.0",
10
10
  "category": "Reporting",
11
11
  "summary": "OCA Financial Reports",
12
12
  "author": "Camptocamp,"
@@ -330,6 +330,7 @@ msgstr ""
330
330
  #: code:addons/account_financial_report/report/aged_partner_balance_xlsx.py:0
331
331
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
332
332
  #: code:addons/account_financial_report/report/open_items_xlsx.py:0
333
+ #: model:ir.model.fields.selection,name:account_financial_report.selection__trial_balance_report_wizard__grouped_by__analytic_account
333
334
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_move_lines
334
335
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
335
336
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_open_items_lines_header
@@ -916,6 +917,7 @@ msgstr ""
916
917
  #. module: account_financial_report
917
918
  #: model:ir.model.fields,field_description:account_financial_report.field_general_ledger_report_wizard__grouped_by
918
919
  #: model:ir.model.fields,field_description:account_financial_report.field_open_items_report_wizard__grouped_by
920
+ #: model:ir.model.fields,field_description:account_financial_report.field_trial_balance_report_wizard__grouped_by
919
921
  msgid "Grouped By"
920
922
  msgstr ""
921
923
 
@@ -1581,6 +1583,13 @@ msgstr ""
1581
1583
  msgid "Starting account in a range"
1582
1584
  msgstr ""
1583
1585
 
1586
+ #. module: account_financial_report
1587
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1588
+ #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1589
+ #, python-format
1590
+ msgid "TOTAL"
1591
+ msgstr ""
1592
+
1584
1593
  #. module: account_financial_report
1585
1594
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
1586
1595
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_general_ledger_lines
@@ -1729,7 +1738,9 @@ msgid "To:"
1729
1738
  msgstr ""
1730
1739
 
1731
1740
  #. module: account_financial_report
1741
+ #: code:addons/account_financial_report/report/trial_balance_xlsx.py:0
1732
1742
  #: model_terms:ir.ui.view,arch_db:account_financial_report.report_aged_partner_balance_account_ending_cumul
1743
+ #, python-format
1733
1744
  msgid "Total"
1734
1745
  msgstr ""
1735
1746
 
@@ -1861,6 +1872,12 @@ msgstr ""
1861
1872
  msgid "With Account Name"
1862
1873
  msgstr ""
1863
1874
 
1875
+ #. module: account_financial_report
1876
+ #: code:addons/account_financial_report/report/trial_balance.py:0
1877
+ #, python-format
1878
+ msgid "Without analytic account"
1879
+ msgstr ""
1880
+
1864
1881
  #. module: account_financial_report
1865
1882
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
1866
1883
  #: code:addons/account_financial_report/report/general_ledger_xlsx.py:0
@@ -150,6 +150,7 @@ class GeneralLedgerXslx(models.AbstractModel):
150
150
  tags_data = res_data["tags_data"]
151
151
  filter_partner_ids = res_data["filter_partner_ids"]
152
152
  foreign_currency = res_data["foreign_currency"]
153
+ company_currency = res_data["company_currency"]
153
154
  # For each account
154
155
  for account in general_ledger:
155
156
  # Write account title
@@ -171,7 +172,7 @@ class GeneralLedgerXslx(models.AbstractModel):
171
172
  "initial_balance": account["init_bal"]["balance"],
172
173
  }
173
174
  )
174
- if foreign_currency:
175
+ if foreign_currency and account["currency_id"]:
175
176
  account.update(
176
177
  {"initial_bal_curr": account["init_bal"]["bal_curr"]}
177
178
  )
@@ -185,7 +186,10 @@ class GeneralLedgerXslx(models.AbstractModel):
185
186
  "journal": journals_data[line["journal_id"]]["code"],
186
187
  }
187
188
  )
188
- if line["currency_id"]:
189
+ line_currency_id = (
190
+ line["currency_id"][0] if line["currency_id"] else False
191
+ )
192
+ if line_currency_id and line_currency_id != company_currency.id:
189
193
  line.update(
190
194
  {
191
195
  "currency_name": line["currency_id"][1],
@@ -207,7 +211,11 @@ class GeneralLedgerXslx(models.AbstractModel):
207
211
  "tags": tags,
208
212
  }
209
213
  )
210
- if foreign_currency:
214
+ if (
215
+ foreign_currency
216
+ and line_currency_id
217
+ and line_currency_id != company_currency.id
218
+ ):
211
219
  total_bal_curr += line["bal_curr"]
212
220
  line.update({"total_bal_curr": total_bal_curr})
213
221
  self.write_line_from_dict(line, report_data)
@@ -219,7 +227,7 @@ class GeneralLedgerXslx(models.AbstractModel):
219
227
  "final_balance": account["fin_bal"]["balance"],
220
228
  }
221
229
  )
222
- if foreign_currency:
230
+ if foreign_currency and account["currency_id"]:
223
231
  account.update(
224
232
  {
225
233
  "final_bal_curr": account["fin_bal"]["bal_curr"],
@@ -262,7 +270,7 @@ class GeneralLedgerXslx(models.AbstractModel):
262
270
  ],
263
271
  }
264
272
  )
265
- if foreign_currency:
273
+ if foreign_currency and account["currency_id"]:
266
274
  group_item.update(
267
275
  {
268
276
  "initial_bal_curr": group_item["init_bal"]["bal_curr"],
@@ -278,7 +286,10 @@ class GeneralLedgerXslx(models.AbstractModel):
278
286
  "journal": journals_data[line["journal_id"]]["code"],
279
287
  }
280
288
  )
281
- if line["currency_id"]:
289
+ line_currency_id = (
290
+ line["currency_id"][0] if line["currency_id"] else False
291
+ )
292
+ if line_currency_id and line_currency_id != company_currency.id:
282
293
  line.update(
283
294
  {
284
295
  "currency_name": line["currency_id"][1],
@@ -300,7 +311,11 @@ class GeneralLedgerXslx(models.AbstractModel):
300
311
  "tags": tags,
301
312
  }
302
313
  )
303
- if foreign_currency:
314
+ if (
315
+ foreign_currency
316
+ and line_currency_id
317
+ and line_currency_id != company_currency.id
318
+ ):
304
319
  total_bal_curr += line["bal_curr"]
305
320
  line.update({"total_bal_curr": total_bal_curr})
306
321
  self.write_line_from_dict(line, report_data)