odoo-addon-account-financial-report 16.0.1.7.1.8__py3-none-any.whl → 16.0.1.8.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.

@@ -8,10 +8,11 @@
8
8
 
9
9
  /*
10
10
  :Author: David Goodger (goodger@python.org)
11
- :Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11
+ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
12
12
  :Copyright: This stylesheet has been placed in the public domain.
13
13
 
14
14
  Default cascading style sheet for the HTML output of Docutils.
15
+ Despite the name, some widely supported CSS2 features are used.
15
16
 
16
17
  See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
17
18
  customize this style sheet.
@@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
274
275
  margin-left: 2em ;
275
276
  margin-right: 2em }
276
277
 
277
- pre.code .ln { color: grey; } /* line numbers */
278
+ pre.code .ln { color: gray; } /* line numbers */
278
279
  pre.code, code { background-color: #eeeeee }
279
280
  pre.code .comment, code .comment { color: #5C6576 }
280
281
  pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@ span.option {
300
301
  span.pre {
301
302
  white-space: pre }
302
303
 
303
- span.problematic {
304
+ span.problematic, pre.problematic {
304
305
  color: red }
305
306
 
306
307
  span.section-subtitle {
@@ -366,7 +367,7 @@ ul.auto-toc {
366
367
  !! This file is generated by oca-gen-addon-readme !!
367
368
  !! changes will be overwritten. !!
368
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369
- !! source digest: sha256:37f5cf69b03916af1c8d85fd081b4cb11e1503fff50fdd4c0f9412957a5a2d88
370
+ !! source digest: sha256:4e2290a4fa6f850961fc5d90934664a2809a0257d2911e02d1d63c2c41b10793
370
371
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371
372
  <p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-financial-reporting/tree/16.0/account_financial_report"><img alt="OCA/account-financial-reporting" src="https://img.shields.io/badge/github-OCA%2Faccount--financial--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-financial-reporting-16-0/account-financial-reporting-16-0-account_financial_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/account-financial-reporting&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372
373
  <p>This module adds a set of financial reports. They are accessible under
@@ -528,7 +529,9 @@ April 2016.</p>
528
529
  <div class="section" id="maintainers">
529
530
  <h2><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h2>
530
531
  <p>This module is maintained by the OCA.</p>
531
- <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
532
+ <a class="reference external image-reference" href="https://odoo-community.org">
533
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
534
+ </a>
532
535
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
533
536
  mission is to support the collaborative development of Odoo features and
534
537
  promote its widespread use.</p>
@@ -1,7 +1,9 @@
1
1
  # Author: Julien Coux
2
2
  # Copyright 2016 Camptocamp SA
3
+ # Copyright 2024 Tecnativa - Carolina Fernandez
3
4
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
4
5
 
6
+ from odoo.fields import Date
5
7
  from odoo.tests import tagged
6
8
 
7
9
  from odoo.addons.account.tests.common import AccountTestInvoicingCommon
@@ -66,3 +68,23 @@ class TestOpenItems(AccountTestInvoicingCommon):
66
68
  [open_items_code_set.add(account.code) for account in open_items.account_ids]
67
69
  self.assertEqual(len(open_items_code_set), len(all_accounts_code_set))
68
70
  self.assertTrue(open_items_code_set == all_accounts_code_set)
71
+
72
+ def test_open_items_grouped_by(self):
73
+ open_item_wizard = self.env["open.items.report.wizard"]
74
+ all_accounts = self.env["account.account"].search(
75
+ [
76
+ ("reconcile", "=", True),
77
+ ],
78
+ order="code",
79
+ )
80
+ wizard = open_item_wizard.create(
81
+ {
82
+ "date_at": Date.today(),
83
+ "account_code_from": self.account001.id,
84
+ "account_code_to": all_accounts[-1].id,
85
+ "grouped_by": "salesperson",
86
+ }
87
+ )
88
+ wizard.on_change_account_range()
89
+ res = wizard._prepare_report_open_items()
90
+ self.assertEqual(res["grouped_by"], wizard.grouped_by)
@@ -59,6 +59,10 @@ class OpenItemsReportWizard(models.TransientModel):
59
59
  comodel_name="account.account",
60
60
  help="Ending account in a range",
61
61
  )
62
+ grouped_by = fields.Selection(
63
+ selection=[("partners", "Partners"), ("salesperson", "Partner Salesperson")],
64
+ default="partners",
65
+ )
62
66
 
63
67
  @api.onchange("account_code_from", "account_code_to")
64
68
  def on_change_account_range(self):
@@ -134,6 +138,19 @@ class OpenItemsReportWizard(models.TransientModel):
134
138
  else:
135
139
  self.account_ids = None
136
140
 
141
+ def _calculate_amounts_by_partner(self, account_id, open_items_move_lines_data):
142
+ total_amount = {}
143
+ for line in open_items_move_lines_data:
144
+ partner_id_key = line["partner_id"]
145
+ if account_id not in total_amount:
146
+ total_amount[account_id] = {}
147
+ if partner_id_key not in total_amount[account_id]:
148
+ total_amount[account_id][partner_id_key] = {"residual": 0.0}
149
+ total_amount[account_id][partner_id_key]["residual"] += line[
150
+ "amount_residual"
151
+ ]
152
+ return total_amount
153
+
137
154
  def _print_report(self, report_type):
138
155
  self.ensure_one()
139
156
  data = self._prepare_report_open_items()
@@ -165,6 +182,7 @@ class OpenItemsReportWizard(models.TransientModel):
165
182
  "account_ids": self.account_ids.ids,
166
183
  "partner_ids": self.partner_ids.ids or [],
167
184
  "account_financial_report_lang": self.env.lang,
185
+ "grouped_by": self.grouped_by,
168
186
  }
169
187
 
170
188
  def _export(self, report_type):
@@ -21,6 +21,7 @@
21
21
  <group name="other_filters">
22
22
  <field name="target_move" widget="radio" />
23
23
  <field name="show_partner_details" />
24
+ <field name="grouped_by" />
24
25
  <field name="hide_account_at_0" />
25
26
  <field name="foreign_currency" />
26
27
  </group>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-account_financial_report
3
- Version: 16.0.1.7.1.8
3
+ Version: 16.0.1.8.0
4
4
  Summary: OCA Financial Reports
5
5
  Home-page: https://github.com/OCA/account-financial-reporting
6
6
  Author: Camptocamp,initOS GmbH,redCOR AG,ForgeFlow,Odoo Community Association (OCA)
@@ -24,7 +24,7 @@ Account Financial Reports
24
24
  !! This file is generated by oca-gen-addon-readme !!
25
25
  !! changes will be overwritten. !!
26
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:37f5cf69b03916af1c8d85fd081b4cb11e1503fff50fdd4c0f9412957a5a2d88
27
+ !! source digest: sha256:4e2290a4fa6f850961fc5d90934664a2809a0257d2911e02d1d63c2c41b10793
28
28
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
29
 
30
30
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,13 +1,13 @@
1
- odoo/addons/account_financial_report/README.rst,sha256=7GaPRUutGCxy0O6HScsayybQ9fEoooXimc0NBTsQX2o,6889
1
+ odoo/addons/account_financial_report/README.rst,sha256=VZhaw2wKUUnufZ7CiDlzT9HMxvMyhmkyfFaTkc4ksXU,6889
2
2
  odoo/addons/account_financial_report/__init__.py,sha256=YoL8hk5QxSifbFJL7gPzpOSk-3zB1OSHJBXyZK25G6Q,187
3
- odoo/addons/account_financial_report/__manifest__.py,sha256=W_c8pxyzGmHJYaZba-l4BslhLWlZgCIzf7AkfPGw0mk,2061
3
+ odoo/addons/account_financial_report/__manifest__.py,sha256=so1F3GHzSvjwUEeqz8QzxTGD337VGAc5JJtDIhoAQ_o,2061
4
4
  odoo/addons/account_financial_report/menuitems.xml,sha256=k20N6cNRlDsnPhc378MVs7jwzJhbbJQ2k-P3WdsmF_M,1206
5
5
  odoo/addons/account_financial_report/reports.xml,sha256=c2KamS250rNzHUInjNwC0G2dhwiIqtYgbked51PtmVw,9254
6
- odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=dQqsKXLERqXM8ro6-S9Ur_aD3Bny2YHE-hS2HwjKiBI,82964
6
+ odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=P1U1Mmx5c9VysiDBQ2HdYF9yDkHgc2iPwnGs1Jdbg-c,83705
7
7
  odoo/addons/account_financial_report/i18n/ar.po,sha256=KWskuS9Y9Zu9el8W28_oLzj6XZWNohTc6kQ01rDBq8g,91011
8
- odoo/addons/account_financial_report/i18n/ca.po,sha256=OmD0lD1TZZ_UdwcsSm5Jo0VGMIMPaNOv9Z4GjkqL094,88003
8
+ odoo/addons/account_financial_report/i18n/ca.po,sha256=o6YGlzIMfJRTJAkZL58agArVThCP6wqW2JXS2WvXaH8,89846
9
9
  odoo/addons/account_financial_report/i18n/de.po,sha256=tQVXT7hzdIu8yQmCxShSDpDgj8j7WKmEnFgzKjI7ejU,93698
10
- odoo/addons/account_financial_report/i18n/es.po,sha256=xAsXyoEcNEZtkSQESXfW8ybm05zxD9mdcZjSSZ4Lrrc,90168
10
+ odoo/addons/account_financial_report/i18n/es.po,sha256=OAOzUYILpqY5Dras9LYlum2oIL-GdDyV_I7kQpWJIcQ,90811
11
11
  odoo/addons/account_financial_report/i18n/es_AR.po,sha256=8VJkFQyCTlzV4k6HUdEu8jWv71PIZQuUQUHve4p1eUA,90598
12
12
  odoo/addons/account_financial_report/i18n/es_MX.po,sha256=jMfIW4-DevAQx373ne4E25JGZ0r5LPUDkSUMgksXqX4,81642
13
13
  odoo/addons/account_financial_report/i18n/fr.po,sha256=vqOKXSuhJSvyVKeGBCpLnTTWNS9i2NjBb0b2q7vNx2M,95322
@@ -45,8 +45,8 @@ odoo/addons/account_financial_report/report/general_ledger.py,sha256=is5PS0xS63U
45
45
  odoo/addons/account_financial_report/report/general_ledger_xlsx.py,sha256=bljV-GRofA1jaqPD65rJmhk96GhL2CIkyMN19CXAu5E,16458
46
46
  odoo/addons/account_financial_report/report/journal_ledger.py,sha256=5_w9CmKy_eZNgJsSL1TFTTe5b3DBBEY1qmseI1RuGPI,15424
47
47
  odoo/addons/account_financial_report/report/journal_ledger_xlsx.py,sha256=Pp7iDkBjSk0BqZkSPAiKI2hBHNcjKYjZoBxuL_ENz5E,10126
48
- odoo/addons/account_financial_report/report/open_items.py,sha256=7ODuL5W36FR7-0aQEhM2luoaHM7dx_dYlvMs4yHKIJ8,11920
49
- odoo/addons/account_financial_report/report/open_items_xlsx.py,sha256=ALSPBYyWcON7VduRmsh9rZuaac77EOytU7MO8ATn6O8,8395
48
+ odoo/addons/account_financial_report/report/open_items.py,sha256=JND4C0oixuL7cc45kVj5tc4ysivHQJguEPcX_ebviWI,12258
49
+ odoo/addons/account_financial_report/report/open_items_xlsx.py,sha256=iv32561UaRppS5XyclMnYwLHJ2icYUA1hNeUOkcl8ng,14960
50
50
  odoo/addons/account_financial_report/report/trial_balance.py,sha256=GcvZQ9tET2CHEdFbtuTuwAE9T-c89MP-fX7IXr_B3zA,31411
51
51
  odoo/addons/account_financial_report/report/trial_balance_xlsx.py,sha256=phPDqy4pXbd94oFmwjPNe_XKoMCgcTXPE6HOkGJJDko,12060
52
52
  odoo/addons/account_financial_report/report/vat_report.py,sha256=H0k2uhDK_X3el1gVXA_lBUoj2dO1u104rjaWBcWLpnk,10131
@@ -55,13 +55,13 @@ odoo/addons/account_financial_report/report/templates/aged_partner_balance.xml,s
55
55
  odoo/addons/account_financial_report/report/templates/general_ledger.xml,sha256=ne1YtEyTqvTV4Oxu54L1vVOheBOtcPGl-R_pVUD7Rlc,39228
56
56
  odoo/addons/account_financial_report/report/templates/journal_ledger.xml,sha256=egiOr0CBtt7c4dY0Ghtf44LxF-ounCUjg77CUDUTpX0,21574
57
57
  odoo/addons/account_financial_report/report/templates/layouts.xml,sha256=gCejPAn8GLrySSve8pGcs0fY5nr48C3mmyuoEJVZkJ4,1526
58
- odoo/addons/account_financial_report/report/templates/open_items.xml,sha256=ku84beB5mDed_np9YhZuNygaUsdl1E-_AnlUQpq4Yy4,14834
58
+ odoo/addons/account_financial_report/report/templates/open_items.xml,sha256=03oeGZDxEysS8TVpm012DGQVlEYby_OC2Ob_WsnKX6o,21559
59
59
  odoo/addons/account_financial_report/report/templates/trial_balance.xml,sha256=Hu1UeHAmOrvVfHLFfb4qf3eK1Q6aaF_hot_ryL8oQK4,47869
60
60
  odoo/addons/account_financial_report/report/templates/vat_report.xml,sha256=2WeL6Njr8LFBtERKmfyi3IH-J1frSO4Gpew-ruzuWNk,8128
61
61
  odoo/addons/account_financial_report/security/ir.model.access.csv,sha256=S1VQLLwLeaOeAMYGqtoOqHUaZVrvDUVE4Z-0-SRjSGQ,1134
62
62
  odoo/addons/account_financial_report/security/security.xml,sha256=gpNJnzruXfeYskn26FqY9U04FiuTf8vgLCKEGY8PADM,422
63
63
  odoo/addons/account_financial_report/static/description/icon.png,sha256=WW-eOIjW5-jo7tgBieNv6K2DUKMoHFSVctnp0htstHI,15230
64
- odoo/addons/account_financial_report/static/description/index.html,sha256=vP_8zDGYLcnu5MFqrCeek91LfwxeuTHWkGmDwAwFJgQ,19665
64
+ odoo/addons/account_financial_report/static/description/index.html,sha256=7nnksngfhxYXGP71q_MRi4KlCAZgZXlqObWu1iABhRM,19748
65
65
  odoo/addons/account_financial_report/static/src/css/report.css,sha256=Cu4VmyY5tVXIddaojFDsg0Ute2qPCvKbLiimak_X9ik,2361
66
66
  odoo/addons/account_financial_report/static/src/css/report_html.css,sha256=I1kX1RsThtjGNLOaNJEWCvMnB9iAFW6nGkcyFYZzJoA,135
67
67
  odoo/addons/account_financial_report/static/src/js/report.esm.js,sha256=He488vLRaLv6IIuVaNSnNl8kJMIwJmMIv7GkmXyPJZs,2475
@@ -72,7 +72,7 @@ odoo/addons/account_financial_report/tests/test_age_report_configuration.py,sha2
72
72
  odoo/addons/account_financial_report/tests/test_aged_partner_balance.py,sha256=u9y92QaeBwNSi40og0bhIN4AL5qXQIUd_kf8sDidsJw,5906
73
73
  odoo/addons/account_financial_report/tests/test_general_ledger.py,sha256=Thp8XUOgc03VDNAzRJWLSQC2nWLGjUN03UPIc_1LKYo,30395
74
74
  odoo/addons/account_financial_report/tests/test_journal_ledger.py,sha256=Nm7_JbaR69QqdGmEpttfmXNWGOg58bUliMPCTAU3__g,11154
75
- odoo/addons/account_financial_report/tests/test_open_items.py,sha256=geLBA4lkhcRNdPJnT8xhY-bIqUfLXaJFI3b1mmOGBOw,2652
75
+ odoo/addons/account_financial_report/tests/test_open_items.py,sha256=AwE8xa89ZiSl26oyde7k-6tcGSMbRtrLv-yO-NjApTA,3435
76
76
  odoo/addons/account_financial_report/tests/test_trial_balance.py,sha256=MFkLTriKpVvShydGj5SK_nadmbUCl0ZmsY9Pdo0txdc,27824
77
77
  odoo/addons/account_financial_report/tests/test_vat_report.py,sha256=YUVFJa8fDCIgx5ZC5KKGKjgTps4yupjQ_W6MMaDE_Cs,14704
78
78
  odoo/addons/account_financial_report/view/account_age_report_configuration_views.xml,sha256=xVTv70rbpp2i93mwYhGq6wI6B11_nsiMJSPexrHjxZM,1764
@@ -92,13 +92,13 @@ odoo/addons/account_financial_report/wizard/general_ledger_wizard.py,sha256=_jTF
92
92
  odoo/addons/account_financial_report/wizard/general_ledger_wizard_view.xml,sha256=KK_bIbqbAxmYqjwFQj3KEH5givrwMQ7bMklVIMlv0YA,7915
93
93
  odoo/addons/account_financial_report/wizard/journal_ledger_wizard.py,sha256=CA44N2yVdZbAttw3JUK6hueMOQc__wY5Abc2hDW49_0,5546
94
94
  odoo/addons/account_financial_report/wizard/journal_ledger_wizard_view.xml,sha256=s3go3x-VSCcr1xNAE3Lzj1FnymyS76hxzazuWtNc91k,2957
95
- odoo/addons/account_financial_report/wizard/open_items_wizard.py,sha256=yP7B1LeSbOYu7wKw0umMlxA33zuGnzdT8GSkyiiQJB8,6594
96
- odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml,sha256=zLl1eq0LSSnS2S_1lzu3Lwzn2jN1iiyEcbAvjiKqcuw,4689
95
+ odoo/addons/account_financial_report/wizard/open_items_wizard.py,sha256=zaQ1zjcEViK6hUybGu38gFCy9tSTLcBNt8LED7RBPW8,7383
96
+ odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml,sha256=8dMmYxRm0u8jkhSZ8NVq8_SG6Ll_HPDGjhaql5_JgoU,4741
97
97
  odoo/addons/account_financial_report/wizard/trial_balance_wizard.py,sha256=k4SVHSblodaFgtE3v-oPqVW_wuNA4HcrYWInQvQlTcE,10583
98
98
  odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml,sha256=7oNGPs3s8DVw3movVGe2ryRUNl1MtN7O76UH8zaFFtI,7048
99
99
  odoo/addons/account_financial_report/wizard/vat_report_wizard.py,sha256=pJATDNWLcEWvctby5e5yvv4Kz7YDfCTi7YZP7slA8a4,3424
100
100
  odoo/addons/account_financial_report/wizard/vat_report_wizard_view.xml,sha256=T3P81O4csDGP7Jmf7eAtmbIIldja3IoXbBmweMMt8vA,2330
101
- odoo_addon_account_financial_report-16.0.1.7.1.8.dist-info/METADATA,sha256=a6pKUKU-gtSVdwhZLL3_heFXYfBhcGc3HIuqKI90Kzk,7571
102
- odoo_addon_account_financial_report-16.0.1.7.1.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
103
- odoo_addon_account_financial_report-16.0.1.7.1.8.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
104
- odoo_addon_account_financial_report-16.0.1.7.1.8.dist-info/RECORD,,
101
+ odoo_addon_account_financial_report-16.0.1.8.0.dist-info/METADATA,sha256=2a88ut-_Wd2zUJ2e3zX9q7y67VUSx4BCXUCjD-rvFeo,7569
102
+ odoo_addon_account_financial_report-16.0.1.8.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
103
+ odoo_addon_account_financial_report-16.0.1.8.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
104
+ odoo_addon_account_financial_report-16.0.1.8.0.dist-info/RECORD,,