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

@@ -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
@@ -22,6 +24,14 @@ class TestOpenItems(AccountTestInvoicingCommon):
22
24
  tracking_disable=True,
23
25
  )
24
26
  )
27
+ cls.account001 = cls.env["account.account"].create(
28
+ {
29
+ "code": "001",
30
+ "name": "Account 001",
31
+ "account_type": "income_other",
32
+ "reconcile": True,
33
+ }
34
+ )
25
35
 
26
36
  def test_partner_filter(self):
27
37
  partner_1 = self.env.ref("base.res_partner_1")
@@ -39,3 +49,23 @@ class TestOpenItems(AccountTestInvoicingCommon):
39
49
 
40
50
  wizard = self.env["open.items.report.wizard"].with_context(**context)
41
51
  self.assertEqual(wizard._default_partners(), expected_list)
52
+
53
+ def test_open_items_grouped_by(self):
54
+ open_item_wizard = self.env["open.items.report.wizard"]
55
+ all_accounts = self.env["account.account"].search(
56
+ [
57
+ ("reconcile", "=", True),
58
+ ],
59
+ order="code",
60
+ )
61
+ wizard = open_item_wizard.create(
62
+ {
63
+ "date_at": Date.today(),
64
+ "account_code_from": self.account001.id,
65
+ "account_code_to": all_accounts[-1].id,
66
+ "grouped_by": "salesperson",
67
+ }
68
+ )
69
+ wizard.on_change_account_range()
70
+ res = wizard._prepare_report_open_items()
71
+ 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: 18.0.1.2.6.1
3
+ Version: 18.0.1.3.0
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo-addon-date_range==18.0.*
6
6
  Requires-Dist: odoo-addon-report_xlsx==18.0.*
@@ -29,7 +29,7 @@ Account Financial Reports
29
29
  !! This file is generated by oca-gen-addon-readme !!
30
30
  !! changes will be overwritten. !!
31
31
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32
- !! source digest: sha256:4c8dd71b140619ff57e872835ca14c50beb3ddda9bde30205ce9456304884adb
32
+ !! source digest: sha256:ecc9aa27354484eb81b4932dca2dd1cda89b3be41d684259fb8826b9098b61cf
33
33
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
34
 
35
35
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,13 +1,13 @@
1
- odoo/addons/account_financial_report/README.rst,sha256=fqDONzWyDSkqSPhk_oP1Sa0PLdsaDhaETQuMQY_hmzQ,7308
1
+ odoo/addons/account_financial_report/README.rst,sha256=ko7XFz9__JjvEcHJ4AsoUXSMAig_8ERboFxz9mr_gHo,7308
2
2
  odoo/addons/account_financial_report/__init__.py,sha256=YoL8hk5QxSifbFJL7gPzpOSk-3zB1OSHJBXyZK25G6Q,187
3
- odoo/addons/account_financial_report/__manifest__.py,sha256=yIKWy2Mz7Jvgh3gQ-GB1mmvrk30F2AGefhl6NQU4xnM,2061
3
+ odoo/addons/account_financial_report/__manifest__.py,sha256=z1XSxKDVuXoExw9QnT7Wl3KSTSYzK-N3uIKfWk5Q0XQ,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=Kj9fu5spPXthOCeQYlRHBdY8Ls6Qm3bWipqBNbuGpSw,79880
7
- odoo/addons/account_financial_report/i18n/ar.po,sha256=CYaygYm4FGQyNrPYqVzP_1UA28zE8xf09jqImZ_EdH4,89811
6
+ odoo/addons/account_financial_report/i18n/account_financial_report.pot,sha256=ME3vFy_j2WEs36Yn3XwpvsqS8fvlM_xGo6rh0AaTU_U,80536
7
+ odoo/addons/account_financial_report/i18n/ar.po,sha256=KHy7GijuN4mStLkoM59XqzVAmFpMFghCcuBAbgt01NU,94131
8
8
  odoo/addons/account_financial_report/i18n/ca.po,sha256=Q9C48xuPBmsjc9Lvk13GbpLY7BVHVvcKMsZMjs_9ojQ,86610
9
9
  odoo/addons/account_financial_report/i18n/de.po,sha256=Et3gVHrNOP-y3_xCWHAxZBBtIipAOzxX0yAxkIyMjEM,92498
10
- odoo/addons/account_financial_report/i18n/es.po,sha256=1KyJjoVBtaMEuTT-GrVOKDy-ZHhKwgPojjWOizce7ZU,89401
10
+ odoo/addons/account_financial_report/i18n/es.po,sha256=Ebi_bM6soUSZEensks9IKlkgdyhJ0wIVlF525S71K_c,90044
11
11
  odoo/addons/account_financial_report/i18n/es_AR.po,sha256=aACghbtcAXyo5JL3xjbV8KoY148btyHHuqaOPlcOmak,89458
12
12
  odoo/addons/account_financial_report/i18n/es_MX.po,sha256=FvBPNwLX4in3oqGVErLitn1RYWZ1-X9SvkboZuSFqDM,80169
13
13
  odoo/addons/account_financial_report/i18n/fr.po,sha256=VBGDMwFRxG1Yav_9cl-rDrbCLQgm4eWS8rq-jvidvac,94148
@@ -45,8 +45,8 @@ odoo/addons/account_financial_report/report/general_ledger.py,sha256=yHP6utvegBy
45
45
  odoo/addons/account_financial_report/report/general_ledger_xlsx.py,sha256=PlLj8FMiFRIbniLzMzvaN-p2HUAr7KnJZktRnOpYO24,17553
46
46
  odoo/addons/account_financial_report/report/journal_ledger.py,sha256=HvE8TlzMHAXGcNvqN2C8sEYx9CBKLk3a1vsu9X_3xX4,15465
47
47
  odoo/addons/account_financial_report/report/journal_ledger_xlsx.py,sha256=gqulSBNfZY5chQFbBxXLUa1I11AlY_NbaIz3lHDeF70,10060
48
- odoo/addons/account_financial_report/report/open_items.py,sha256=bAplEfAFLLq9-H_mM5VTttfST3DusSPT8d4mkINGpnk,12218
49
- odoo/addons/account_financial_report/report/open_items_xlsx.py,sha256=XtgGVN995J89c3mnaMw5uvliOJBY47H9hn4GGsPiLcs,8366
48
+ odoo/addons/account_financial_report/report/open_items.py,sha256=wyuZ2EcYFFMXyNqBChs3r6YCqmSI_W-bzieuTnCadc8,12556
49
+ odoo/addons/account_financial_report/report/open_items_xlsx.py,sha256=U2mzYDK_GxECJw2B45YhtJfJEQ_M35_snodnaLABKqQ,14931
50
50
  odoo/addons/account_financial_report/report/trial_balance.py,sha256=sUnfa-ss9jqMFd0fbqepNMnLwV84ywq87r4y2bEf-m4,42397
51
51
  odoo/addons/account_financial_report/report/trial_balance_xlsx.py,sha256=HqSKYcDwqeTcTYHRju7RvR410VjYnOy5vE78bHEWkQs,13246
52
52
  odoo/addons/account_financial_report/report/vat_report.py,sha256=Si2hVaxJLwLXfMqzAF0N5dMdbc2eaQtCVM0UmwQMHc0,10249
@@ -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=t_fB_YVNuD0kZe6fR9Ny1qp_Su9ucpq_IjlEw6N6RNs,39474
56
56
  odoo/addons/account_financial_report/report/templates/journal_ledger.xml,sha256=Sc2es_Xi8WWimBFp9JY_QYyAP0mMYHQhPp6Lmn7XHkY,21231
57
57
  odoo/addons/account_financial_report/report/templates/layouts.xml,sha256=EDBF0KpmyUzYODauhSIU1QL3zFYjlg3Ynq41K30WqgY,1575
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=8zjI2NYzyzv3HsMaaV0uvM8dqQhZWwwKHIkei09OV6Q,21940
59
59
  odoo/addons/account_financial_report/report/templates/trial_balance.xml,sha256=fOtCCMMvAq7vQpEV0_51O6-YRQHjV9sWbB3NbkYJtYw,53287
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=YQCXbOuTGHCWGYwGnXMie_0tnWG5zYJGdoeey3o1xaw,382
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=xyuUBrf6XyGPeOAk6QlWJBG7mO7HerNTCBqY-KpUU-4,20640
64
+ odoo/addons/account_financial_report/static/description/index.html,sha256=W04V75ftvNXLkKh30W8AyVcagAPZAyEqr64zzzrEfgI,20640
65
65
  odoo/addons/account_financial_report/static/src/css/report.css,sha256=UYlrKHXNvw3lcwlaTVNCxSQyMDi0JrizZjn4fS5cirw,2354
66
66
  odoo/addons/account_financial_report/static/src/css/report_html.css,sha256=WO4wfg0-z87dAqLlqz1LuA_rBizNjlGnCUCeMzSSSYs,149
67
67
  odoo/addons/account_financial_report/static/src/js/report.esm.js,sha256=bJcyov25ktGuF-eT_SUGkRLudz-6UNnKR0gmv3e-ZYc,2495
@@ -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=mWF9veN7r15-DhnixhDuh2y6X_itliLgZz3jDMlABrk,4584
73
73
  odoo/addons/account_financial_report/tests/test_general_ledger.py,sha256=eCRgwAIqG65sT37Q7udon85OH5PtHyrqBXGAFkZSAqQ,29114
74
74
  odoo/addons/account_financial_report/tests/test_journal_ledger.py,sha256=CTMBliHQwxcJjr7bgh8TmMA3OrNxB5DhfmO6OpqjV3o,11063
75
- odoo/addons/account_financial_report/tests/test_open_items.py,sha256=u_HWqxoEJiBRtacBiaHpF8ycciZVXmX_Q4qhqJUi7gg,1446
75
+ odoo/addons/account_financial_report/tests/test_open_items.py,sha256=ffvvYkg_-s4Eu0KqQE7CKJDsmzCFb_W7WqMYYspKNLY,2480
76
76
  odoo/addons/account_financial_report/tests/test_trial_balance.py,sha256=x3yEtA6Djg1VMF0O6KdfH4ZT7sq6DcJQ1wm-9ThsHDY,27668
77
77
  odoo/addons/account_financial_report/tests/test_vat_report.py,sha256=9jkMJ9A2lquVkC6x9xkmiZ8YrH4FcySUwKNZw5u5rdM,14617
78
78
  odoo/addons/account_financial_report/view/account_age_report_configuration_views.xml,sha256=etQ_Do0Fz251A73gnWiM7lyCMKGiozIT1aU10vTs27Q,1764
@@ -92,13 +92,13 @@ odoo/addons/account_financial_report/wizard/general_ledger_wizard.py,sha256=izC4
92
92
  odoo/addons/account_financial_report/wizard/general_ledger_wizard_view.xml,sha256=h33UeqoY0VU0UiA58R1_WVEnHinLEwkE-3TwWO90vo8,7501
93
93
  odoo/addons/account_financial_report/wizard/journal_ledger_wizard.py,sha256=coCuXwBUtVP3j8OyiZSxXpiVn3H8T1WkFU8oSI_0qqU,5653
94
94
  odoo/addons/account_financial_report/wizard/journal_ledger_wizard_view.xml,sha256=_dratLc_fq4n0S6oBTQqmQE-gc-LKlmwdlH5ywoOelM,2901
95
- odoo/addons/account_financial_report/wizard/open_items_wizard.py,sha256=29OvzfgJvIVoskZ1Nzky72yhJmS8p4r3LJtmLLNhynI,6613
96
- odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml,sha256=qvMifGs3k5YY8dWF3nhcSYNIdsyXf2Sg2X75CBU5vrc,4633
95
+ odoo/addons/account_financial_report/wizard/open_items_wizard.py,sha256=8ncaypuTTscJ8HuI0AonRBjcDbiS87Sopp9XXdPuXQ0,7402
96
+ odoo/addons/account_financial_report/wizard/open_items_wizard_view.xml,sha256=DgoEkTgBK7Cx349he87g-PB8pCWgrofa7-Sien_30GI,4685
97
97
  odoo/addons/account_financial_report/wizard/trial_balance_wizard.py,sha256=H5DOUU4W-JLJXAgJBzC8qD9U0gxao3TM0b-gKaO_jVs,11302
98
98
  odoo/addons/account_financial_report/wizard/trial_balance_wizard_view.xml,sha256=aHKMVPiQUfrpfUT0sojCfLUG38Am0DuEZSOHTPTof3k,7221
99
99
  odoo/addons/account_financial_report/wizard/vat_report_wizard.py,sha256=SQOpKuTWKjU9F5zfc7NIG0HxhZRHt5Eullia45RA_wM,3430
100
100
  odoo/addons/account_financial_report/wizard/vat_report_wizard_view.xml,sha256=3cJ0it2_5w20iw5x8QtTp11HoBk5kqQup6XjgJMbv7U,2274
101
- odoo_addon_account_financial_report-18.0.1.2.6.1.dist-info/METADATA,sha256=sH3sNMfX1sZ48VL0dyX-B4ZUSfvFpqRSDlgJCzcwIbU,7996
102
- odoo_addon_account_financial_report-18.0.1.2.6.1.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
103
- odoo_addon_account_financial_report-18.0.1.2.6.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
104
- odoo_addon_account_financial_report-18.0.1.2.6.1.dist-info/RECORD,,
101
+ odoo_addon_account_financial_report-18.0.1.3.0.dist-info/METADATA,sha256=PV2-I305O5o9rLqQQihfgPRId-Ufy8tBK4mLhg76DCo,7994
102
+ odoo_addon_account_financial_report-18.0.1.3.0.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
103
+ odoo_addon_account_financial_report-18.0.1.3.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
104
+ odoo_addon_account_financial_report-18.0.1.3.0.dist-info/RECORD,,