odoo-addon-account-reconcile-oca 17.0.1.5.18.1__py3-none-any.whl → 17.0.1.5.19__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.
@@ -11,7 +11,7 @@ Account Reconcile Oca
11
11
  !! This file is generated by oca-gen-addon-readme !!
12
12
  !! changes will be overwritten. !!
13
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
- !! source digest: sha256:f5ea6e3a47d5601899213ca2b0c16edce1690f0c20d71db238c0ea7a9f696623
14
+ !! source digest: sha256:80cddeea5a6e673aeb7d21ef2276036c0a8d4846320b9194345e1fe3d790bc90
15
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
16
 
17
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -5,7 +5,7 @@
5
5
  "name": "Account Reconcile Oca",
6
6
  "summary": """
7
7
  Reconcile addons for Odoo CE accounting""",
8
- "version": "17.0.1.5.18",
8
+ "version": "17.0.1.5.19",
9
9
  "license": "AGPL-3",
10
10
  "author": "CreuBlanca,Dixmit,Odoo Community Association (OCA)",
11
11
  "maintainers": ["etobella"],
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Odoo Server 17.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2025-06-03 09:27+0000\n"
9
+ "PO-Revision-Date: 2025-07-22 09:26+0000\n"
10
10
  "Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
11
11
  "Language-Team: none\n"
12
12
  "Language: it\n"
@@ -502,7 +502,7 @@ msgstr "Debito"
502
502
  #. module: account_reconcile_oca
503
503
  #: model:ir.model.fields,field_description:account_reconcile_oca.field_account_bank_statement_line__previous_manual_amount_in_currency
504
504
  msgid "Previous Manual Amount In Currency"
505
- msgstr ""
505
+ msgstr "Valore manuale precedente in valuta"
506
506
 
507
507
  #. module: account_reconcile_oca
508
508
  #: model_terms:ir.ui.view,arch_db:account_reconcile_oca.account_move_line_search_reconcile_view
@@ -757,7 +757,7 @@ class AccountBankStatementLine(models.Model):
757
757
  data += lines
758
758
  else:
759
759
  reconcile_auxiliary_id, lines = self._get_reconcile_line(
760
- line, "other", from_unreconcile=False
760
+ line, "other", from_unreconcile=False, is_reconciled=True
761
761
  )
762
762
  data += lines
763
763
 
@@ -1171,6 +1171,7 @@ class AccountBankStatementLine(models.Model):
1171
1171
  from_unreconcile=False,
1172
1172
  reconcile_auxiliary_id=False,
1173
1173
  move=False,
1174
+ is_reconciled=False,
1174
1175
  ):
1175
1176
  new_vals = super()._get_reconcile_line(
1176
1177
  line,
@@ -1179,6 +1180,7 @@ class AccountBankStatementLine(models.Model):
1179
1180
  max_amount=max_amount,
1180
1181
  from_unreconcile=from_unreconcile,
1181
1182
  move=move,
1183
+ is_reconciled=is_reconciled,
1182
1184
  )
1183
1185
  rates = []
1184
1186
  for vals in new_vals:
@@ -44,6 +44,7 @@ class AccountReconcileAbstract(models.AbstractModel):
44
44
  max_amount=False,
45
45
  from_unreconcile=False,
46
46
  move=False,
47
+ is_reconciled=False,
47
48
  ):
48
49
  date = self.date if "date" in self._fields else line.date
49
50
  original_amount = amount = net_amount = line.debit - line.credit
@@ -82,6 +83,8 @@ class AccountReconcileAbstract(models.AbstractModel):
82
83
  self.company_id,
83
84
  date,
84
85
  )
86
+ elif is_reconciled:
87
+ currency_amount = line.amount_residual_currency or -line.amount_residual
85
88
  else:
86
89
  currency_amount = self.amount_currency or self.amount
87
90
  line_currency = self._get_reconcile_currency()
@@ -372,7 +372,7 @@ ul.auto-toc {
372
372
  !! This file is generated by oca-gen-addon-readme !!
373
373
  !! changes will be overwritten. !!
374
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375
- !! source digest: sha256:f5ea6e3a47d5601899213ca2b0c16edce1690f0c20d71db238c0ea7a9f696623
375
+ !! source digest: sha256:80cddeea5a6e673aeb7d21ef2276036c0a8d4846320b9194345e1fe3d790bc90
376
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377
377
  <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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/account-reconcile/tree/17.0/account_reconcile_oca"><img alt="OCA/account-reconcile" src="https://img.shields.io/badge/github-OCA%2Faccount--reconcile-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/account-reconcile-17-0/account-reconcile-17-0-account_reconcile_oca"><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-reconcile&amp;target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378
378
  <p>This addon allows to reconcile bank statements and account marked as
@@ -154,6 +154,66 @@ class TestReconciliationWidget(TestAccountReconciliationCommon):
154
154
  self.assertEqual(receivable_line.amount_currency, -100)
155
155
  self.assertEqual(receivable_line.balance, -50)
156
156
 
157
+ def test_two_manual_lines_with_currency(self):
158
+ """We want to test the reconcile widget for bank statements
159
+ on manual lines with foreign currency.
160
+ We enforce the currency rate to be sure that the amounts are correct
161
+ """
162
+ self.env["res.currency.rate"].create(
163
+ {
164
+ "currency_id": self.env.ref("base.USD").id,
165
+ "name": time.strftime("%Y-07-15"),
166
+ "rate": 2,
167
+ }
168
+ )
169
+ bank_stmt = self.acc_bank_stmt_model.create(
170
+ {
171
+ "journal_id": self.bank_journal_euro.id,
172
+ "date": time.strftime("%Y-07-15"),
173
+ "name": "test",
174
+ }
175
+ )
176
+ bank_stmt_line = self.acc_bank_stmt_line_model.create(
177
+ {
178
+ "name": "testLine",
179
+ "journal_id": self.bank_journal_euro.id,
180
+ "statement_id": bank_stmt.id,
181
+ "amount": 50,
182
+ "amount_currency": 100,
183
+ "foreign_currency_id": self.currency_usd_id,
184
+ "date": time.strftime("%Y-07-15"),
185
+ }
186
+ )
187
+ receivable_acc = self.company_data["default_account_receivable"]
188
+ expense_acc = self.company_data["default_account_expense"]
189
+ with Form(
190
+ bank_stmt_line,
191
+ view="account_reconcile_oca.bank_statement_line_form_reconcile_view",
192
+ ) as f:
193
+ self.assertFalse(f.can_reconcile)
194
+ f.manual_reference = "reconcile_auxiliary;1"
195
+ f.manual_account_id = receivable_acc
196
+ f.manual_amount_in_currency = -40
197
+ self.assertFalse(f.can_reconcile)
198
+ f.manual_reference = "reconcile_auxiliary;2"
199
+ f.manual_account_id = expense_acc
200
+ self.assertTrue(f.can_reconcile)
201
+ bank_stmt_line.reconcile_bank_line()
202
+ receivable_line = bank_stmt_line.line_ids.filtered(
203
+ lambda line: line.account_id == receivable_acc
204
+ )
205
+ self.assertEqual(receivable_line.currency_id.id, self.currency_usd_id)
206
+ self.assertEqual(receivable_line.amount_currency, -40)
207
+ self.assertEqual(receivable_line.balance, -20)
208
+ matched_line = False
209
+ for line in bank_stmt_line.reconcile_data_info["data"]:
210
+ if line["id"] == receivable_line.id:
211
+ matched_line = True
212
+ self.assertEqual(line["currency_amount"], -40)
213
+ self.assertEqual(line["amount"], -20)
214
+ break
215
+ self.assertEqual(matched_line, True)
216
+
157
217
  def test_reconcile_invoice_reconcile_full(self):
158
218
  """
159
219
  We want to test the reconcile widget for bank statements on invoices.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-account_reconcile_oca
3
- Version: 17.0.1.5.18.1
3
+ Version: 17.0.1.5.19
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo-addon-account_reconcile_model_oca>=17.0dev,<17.1dev
6
6
  Requires-Dist: odoo-addon-account_statement_base>=17.0dev,<17.1dev
@@ -29,7 +29,7 @@ Account Reconcile Oca
29
29
  !! This file is generated by oca-gen-addon-readme !!
30
30
  !! changes will be overwritten. !!
31
31
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32
- !! source digest: sha256:f5ea6e3a47d5601899213ca2b0c16edce1690f0c20d71db238c0ea7a9f696623
32
+ !! source digest: sha256:80cddeea5a6e673aeb7d21ef2276036c0a8d4846320b9194345e1fe3d790bc90
33
33
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
34
34
 
35
35
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,6 +1,6 @@
1
- odoo/addons/account_reconcile_oca/README.rst,sha256=PYcm19MAMLljoLQFq6ChLxEXffABSyZy-2uL3UUf4q4,3868
1
+ odoo/addons/account_reconcile_oca/README.rst,sha256=sX0Szoauz5MZBXherIOvBN67SanWiTzewVnBM92Ya70,3868
2
2
  odoo/addons/account_reconcile_oca/__init__.py,sha256=vqRYeBgCVZMpZhYvILSxVsNLC9V7zDnvxMnKU8RQP94,55
3
- odoo/addons/account_reconcile_oca/__manifest__.py,sha256=r5SwsEstn-XV6uY4cXZaYz3ndUzp94nM9B0NXCbqwhg,1899
3
+ odoo/addons/account_reconcile_oca/__manifest__.py,sha256=7ndpoEe6DIMm4WzWTQkA3Nu6dziNOL4eakBOZuCeHbs,1899
4
4
  odoo/addons/account_reconcile_oca/hooks.py,sha256=SfJ-GlIGYL1kf8xhQs5qDqwNnE8S9Gs-5dP3vOD-IMM,182
5
5
  odoo/addons/account_reconcile_oca/demo/demo.xml,sha256=6k0uK-H1aBiyogVNhQMQfFGL5zUfUGV2M-sSV6LHeUs,204
6
6
  odoo/addons/account_reconcile_oca/i18n/account_reconcile_oca.pot,sha256=Sl3e7QgJomoJKdDI85cSMg09BHgxK3IwHHE4E_1MfAs,26250
@@ -8,7 +8,7 @@ odoo/addons/account_reconcile_oca/i18n/ca.po,sha256=MFWlCKuJ-eIC1pHQJF0raJPHj2zk
8
8
  odoo/addons/account_reconcile_oca/i18n/es.po,sha256=3OCPzC94x1Rb04Cjs1LbfcmdeGd3rPfNVG8Zmwum2aA,29171
9
9
  odoo/addons/account_reconcile_oca/i18n/fr.po,sha256=hYrQ8tePX1yfN4xv9p1pteI5eqSsgtWHA_aUMAzrJ0s,28563
10
10
  odoo/addons/account_reconcile_oca/i18n/hr.po,sha256=M01Sck33IpCme5pDl1wwyvVhW5lOF6zX7BcEHETZyT0,27729
11
- odoo/addons/account_reconcile_oca/i18n/it.po,sha256=BKNWzG7QsNChWitEoax3RhqK7Yy0Xelt0NXeUF26XJA,28990
11
+ odoo/addons/account_reconcile_oca/i18n/it.po,sha256=8XauOmIqjCFWuVUtuURiNrCn5t7VRJ0iYDt23SCiBHE,29025
12
12
  odoo/addons/account_reconcile_oca/i18n/nl.po,sha256=dP4wqLnyAdOyW81UqU8ceywWLdIlu44rrUr3C6ijkRQ,28370
13
13
  odoo/addons/account_reconcile_oca/i18n/pt.po,sha256=fTNJNFta2qbyvo1JuxrI3FBX7sc-40QgD401msO4yXA,28585
14
14
  odoo/addons/account_reconcile_oca/i18n/pt_BR.po,sha256=MNVbL9lVjAfXPQxpNLvii5AO78U8ewkMDkE-7I6R7vI,28542
@@ -19,10 +19,10 @@ odoo/addons/account_reconcile_oca/i18n/zh_CN.po,sha256=Jc9D7xl_9byNX26cd9ClIGDd6
19
19
  odoo/addons/account_reconcile_oca/models/__init__.py,sha256=28wbZjUZa30uHQY10BMJtKQ_BqJgwLQMQvB9uv0H_fY,282
20
20
  odoo/addons/account_reconcile_oca/models/account_account_reconcile.py,sha256=XXLkq9g4_6x6vZQIAr3i7r-_OJ8vwvC1dTanvL5eWGg,7452
21
21
  odoo/addons/account_reconcile_oca/models/account_bank_statement.py,sha256=CFqlLLtmTqmt5yH3v_pkUfkZezSb1nEhBTu2J5gCjxM,1034
22
- odoo/addons/account_reconcile_oca/models/account_bank_statement_line.py,sha256=YJMSkGvYGF0K0GJlbxXc7cA0ZO0sWUTHwWXpN8aehvI,53687
22
+ odoo/addons/account_reconcile_oca/models/account_bank_statement_line.py,sha256=lNRQ9zPuJv1xo5DQkrQuzgagYiIef2rvVePJDLThYrg,53777
23
23
  odoo/addons/account_reconcile_oca/models/account_journal.py,sha256=PXXoGnByO7ve9_G09tnn95HKJoLvXM1pDxHDdd7bpU4,1359
24
24
  odoo/addons/account_reconcile_oca/models/account_move_line.py,sha256=PfdU6cfrKjKMqL_qGqNdyPUWg-frGQ6nR5uCoYtW38M,1212
25
- odoo/addons/account_reconcile_oca/models/account_reconcile_abstract.py,sha256=XJb9P7PWb7EzWnABzUzjODA4ybK1-91mMhbuM1IRz7o,5101
25
+ odoo/addons/account_reconcile_oca/models/account_reconcile_abstract.py,sha256=6NyQPSx9O0DFR24K9Zh_W5yww4udc9ICHimtlQ1L7Pk,5243
26
26
  odoo/addons/account_reconcile_oca/models/res_company.py,sha256=IlB-zFZnnaNFzeFFQn70qDUCcNXSHvVVlJ7PUneOcjc,1391
27
27
  odoo/addons/account_reconcile_oca/models/res_config_settings.py,sha256=AuenxX0UfqYWWP-QvtB0irSf_JuWVh4a9QylPfl-Lxc,325
28
28
  odoo/addons/account_reconcile_oca/readme/CONTRIBUTORS.md,sha256=subC7gWq_kRC_nJfLRfrI_IXlNoGgWaq9Es5qXuMa1w,16
@@ -32,7 +32,7 @@ odoo/addons/account_reconcile_oca/readme/USAGE.md,sha256=yNLGo35X7TW2TLyJqHU-gdQ
32
32
  odoo/addons/account_reconcile_oca/security/ir.model.access.csv,sha256=XfN2EKOoChlEDonVd5DtodVAQyRbShiJ8nrXx6EwNmM,339
33
33
  odoo/addons/account_reconcile_oca/security/security.xml,sha256=i978n9S9IyLCKqJRvw4gBy8mQBf2-QTPyVu8cRyDuVc,385
34
34
  odoo/addons/account_reconcile_oca/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
35
- odoo/addons/account_reconcile_oca/static/description/index.html,sha256=mH5oRuYGA2CG8gzWHcJzNl3uJck45kUGbBElsQwK3hc,14006
35
+ odoo/addons/account_reconcile_oca/static/description/index.html,sha256=zecT0mcBcZv3SQIb_r03nJ_Ql5wkdmFWNeX8TRrFR0o,14006
36
36
  odoo/addons/account_reconcile_oca/static/src/js/reconcile/reconcile_controller.esm.js,sha256=k85Scd4skR5y56TvFVEqB_uf7vCD9Y7RpInETuNBAc8,4891
37
37
  odoo/addons/account_reconcile_oca/static/src/js/reconcile/reconcile_kanban_record.esm.js,sha256=ewNK1VQgFZWccTiyJMKYkOG6KtbHHVnI2pdNy9kjkig,467
38
38
  odoo/addons/account_reconcile_oca/static/src/js/reconcile/reconcile_renderer.esm.js,sha256=9NSr3iZ7H_QGTpixW5D4WEJuD_u4KRpdYwRmKqcML_k,2117
@@ -54,7 +54,7 @@ odoo/addons/account_reconcile_oca/static/src/scss/reconcile.scss,sha256=b6clO2yW
54
54
  odoo/addons/account_reconcile_oca/static/src/xml/reconcile.xml,sha256=oTMZ-vgK_9-7uISjRTrfQeEjo95NbCCSN18uRYFHFkc,9411
55
55
  odoo/addons/account_reconcile_oca/tests/__init__.py,sha256=8JhP4auByShS8Z_Ik5dShMuWdh1kBlYP_DLI4Ku8XWA,79
56
56
  odoo/addons/account_reconcile_oca/tests/test_account_reconcile.py,sha256=MP5M-NsVhMoYiU675hr1nsvZRRK-4e5KUYMCCKTUHB8,10807
57
- odoo/addons/account_reconcile_oca/tests/test_bank_account_reconcile.py,sha256=5Thync7EUKOaSykQf8nYJN2C_LPi_l8ElFCKjJxWE20,53515
57
+ odoo/addons/account_reconcile_oca/tests/test_bank_account_reconcile.py,sha256=w5t6xfiS9jwHGS_wC-fyWGCoiVpcFsOIEUs8pn9Bzng,56056
58
58
  odoo/addons/account_reconcile_oca/views/account_account.xml,sha256=0RiPmzfRUj54oMYKWM7mLnZL-5IhI5W8fiRruHL0SYc,866
59
59
  odoo/addons/account_reconcile_oca/views/account_account_reconcile.xml,sha256=2FKosNTl4hVC_yVq8uRzZvMMrXyEttK_YTsdnV8o0NI,7016
60
60
  odoo/addons/account_reconcile_oca/views/account_bank_statement.xml,sha256=QrjQZ3OTsnbopdLnnsFaZ0f7ncLkOUbtVj9osXdxw5k,2436
@@ -63,7 +63,7 @@ odoo/addons/account_reconcile_oca/views/account_journal.xml,sha256=T5tZ5Ev0psYp7
63
63
  odoo/addons/account_reconcile_oca/views/account_move.xml,sha256=BnvchVpOJ31M-kCoe6AHDxHMfrEEgJTPPysxguX3xgE,975
64
64
  odoo/addons/account_reconcile_oca/views/account_move_line.xml,sha256=Kr_ET1IAat3B8UoW6VPQO3q88JLVdE5-5jpb13ioCbY,5405
65
65
  odoo/addons/account_reconcile_oca/views/res_config_settings.xml,sha256=PxIqWILg_L_ahR-SDlDWEqWDJKNumPRifFAGF0BG57E,807
66
- odoo_addon_account_reconcile_oca-17.0.1.5.18.1.dist-info/METADATA,sha256=lU_9BGXg_pLURB58CLvIDc0Ufa9ZboMMkXS4qLTYgxg,4593
67
- odoo_addon_account_reconcile_oca-17.0.1.5.18.1.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
68
- odoo_addon_account_reconcile_oca-17.0.1.5.18.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
69
- odoo_addon_account_reconcile_oca-17.0.1.5.18.1.dist-info/RECORD,,
66
+ odoo_addon_account_reconcile_oca-17.0.1.5.19.dist-info/METADATA,sha256=DBnQLyqUp1eXxPPX591WU1O1APmPpxpaLPPnld_22ko,4591
67
+ odoo_addon_account_reconcile_oca-17.0.1.5.19.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
68
+ odoo_addon_account_reconcile_oca-17.0.1.5.19.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
69
+ odoo_addon_account_reconcile_oca-17.0.1.5.19.dist-info/RECORD,,