odoo-addon-account-reconcile-oca 17.0.1.4.0__py3-none-any.whl → 17.0.1.4.2__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.
- odoo/addons/account_reconcile_oca/README.rst +1 -1
- odoo/addons/account_reconcile_oca/__manifest__.py +1 -1
- odoo/addons/account_reconcile_oca/models/account_bank_statement_line.py +9 -4
- odoo/addons/account_reconcile_oca/static/description/index.html +1 -1
- odoo/addons/account_reconcile_oca/tests/test_bank_account_reconcile.py +48 -0
- {odoo_addon_account_reconcile_oca-17.0.1.4.0.dist-info → odoo_addon_account_reconcile_oca-17.0.1.4.2.dist-info}/METADATA +2 -2
- {odoo_addon_account_reconcile_oca-17.0.1.4.0.dist-info → odoo_addon_account_reconcile_oca-17.0.1.4.2.dist-info}/RECORD +9 -9
- {odoo_addon_account_reconcile_oca-17.0.1.4.0.dist-info → odoo_addon_account_reconcile_oca-17.0.1.4.2.dist-info}/WHEEL +0 -0
- {odoo_addon_account_reconcile_oca-17.0.1.4.0.dist-info → odoo_addon_account_reconcile_oca-17.0.1.4.2.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,7 @@ Account Reconcile Oca
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
8
8
|
!! changes will be overwritten. !!
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
10
|
-
!! source digest: sha256:
|
10
|
+
!! source digest: sha256:00ff2a3c7380280d3e7ab038daf1c3cf32e14803b943f63bcdc2f6e2f88a6bee
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |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.4.
|
8
|
+
"version": "17.0.1.4.2",
|
9
9
|
"license": "AGPL-3",
|
10
10
|
"author": "CreuBlanca,Dixmit,Odoo Community Association (OCA)",
|
11
11
|
"maintainers": ["etobella"],
|
@@ -239,13 +239,17 @@ class AccountBankStatementLine(models.Model):
|
|
239
239
|
}
|
240
240
|
)
|
241
241
|
else:
|
242
|
+
account = self.journal_id.suspense_account_id
|
243
|
+
if self.partner_id and total_amount > 0:
|
244
|
+
can_reconcile = True
|
245
|
+
account = self.partner_id.property_account_receivable_id
|
246
|
+
elif self.partner_id and total_amount < 0:
|
247
|
+
can_reconcile = True
|
248
|
+
account = self.partner_id.property_account_payable_id
|
242
249
|
suspense_line = {
|
243
250
|
"reference": "reconcile_auxiliary;%s" % reconcile_auxiliary_id,
|
244
251
|
"id": False,
|
245
|
-
"account_id": [
|
246
|
-
self.journal_id.suspense_account_id.id,
|
247
|
-
self.journal_id.suspense_account_id.display_name,
|
248
|
-
],
|
252
|
+
"account_id": [account.id, account.display_name],
|
249
253
|
"partner_id": self.partner_id
|
250
254
|
and [self.partner_id.id, self.partner_id.display_name]
|
251
255
|
or (self.partner_name and (False, self.partner_name))
|
@@ -280,6 +284,7 @@ class AccountBankStatementLine(models.Model):
|
|
280
284
|
or self.manual_name != line["name"]
|
281
285
|
or (self.manual_partner_id and self.manual_partner_id.display_name or False)
|
282
286
|
!= line.get("partner_id")
|
287
|
+
or self.analytic_distribution != line.get("analytic_distribution", False)
|
283
288
|
)
|
284
289
|
|
285
290
|
def _get_manual_delete_vals(self):
|
@@ -367,7 +367,7 @@ ul.auto-toc {
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
368
368
|
!! changes will be overwritten. !!
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
370
|
+
!! source digest: sha256:00ff2a3c7380280d3e7ab038daf1c3cf32e14803b943f63bcdc2f6e2f88a6bee
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
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-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&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
373
373
|
<p>This addon allows to reconcile bank statements and account marked as
|
@@ -1162,3 +1162,51 @@ class TestReconciliationWidget(TestAccountReconciliationCommon):
|
|
1162
1162
|
self.assertFalse(f.add_account_move_line_id)
|
1163
1163
|
self.assertTrue(f.can_reconcile)
|
1164
1164
|
self.assertEqual(3, len(f.reconcile_data_info["data"]))
|
1165
|
+
|
1166
|
+
def test_receivable_line(self):
|
1167
|
+
bank_stmt_line = self.acc_bank_stmt_line_model.create(
|
1168
|
+
{
|
1169
|
+
"name": "testLine",
|
1170
|
+
"journal_id": self.bank_journal_euro.id,
|
1171
|
+
"partner_id": self.partner_agrolait_id,
|
1172
|
+
"amount": 100,
|
1173
|
+
"date": time.strftime("%Y-07-15"),
|
1174
|
+
}
|
1175
|
+
)
|
1176
|
+
self.assertTrue(bank_stmt_line.can_reconcile)
|
1177
|
+
suspense_line = False
|
1178
|
+
for line in bank_stmt_line.reconcile_data_info["data"]:
|
1179
|
+
if line["kind"] == "suspense":
|
1180
|
+
suspense_line = line
|
1181
|
+
break
|
1182
|
+
self.assertTrue(suspense_line)
|
1183
|
+
self.assertEqual(
|
1184
|
+
self.env["account.account"]
|
1185
|
+
.browse(suspense_line["account_id"][0])
|
1186
|
+
.account_type,
|
1187
|
+
"asset_receivable",
|
1188
|
+
)
|
1189
|
+
|
1190
|
+
def test_payable_line(self):
|
1191
|
+
bank_stmt_line = self.acc_bank_stmt_line_model.create(
|
1192
|
+
{
|
1193
|
+
"name": "testLine",
|
1194
|
+
"journal_id": self.bank_journal_euro.id,
|
1195
|
+
"partner_id": self.partner_agrolait_id,
|
1196
|
+
"amount": -100,
|
1197
|
+
"date": time.strftime("%Y-07-15"),
|
1198
|
+
}
|
1199
|
+
)
|
1200
|
+
self.assertTrue(bank_stmt_line.can_reconcile)
|
1201
|
+
suspense_line = False
|
1202
|
+
for line in bank_stmt_line.reconcile_data_info["data"]:
|
1203
|
+
if line["kind"] == "suspense":
|
1204
|
+
suspense_line = line
|
1205
|
+
break
|
1206
|
+
self.assertTrue(suspense_line)
|
1207
|
+
self.assertEqual(
|
1208
|
+
self.env["account.account"]
|
1209
|
+
.browse(suspense_line["account_id"][0])
|
1210
|
+
.account_type,
|
1211
|
+
"liability_payable",
|
1212
|
+
)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-account_reconcile_oca
|
3
|
-
Version: 17.0.1.4.
|
3
|
+
Version: 17.0.1.4.2
|
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
|
@@ -24,7 +24,7 @@ Account Reconcile Oca
|
|
24
24
|
!! This file is generated by oca-gen-addon-readme !!
|
25
25
|
!! changes will be overwritten. !!
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
27
|
-
!! source digest: sha256:
|
27
|
+
!! source digest: sha256:00ff2a3c7380280d3e7ab038daf1c3cf32e14803b943f63bcdc2f6e2f88a6bee
|
28
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
29
29
|
|
30
30
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -1,6 +1,6 @@
|
|
1
|
-
odoo/addons/account_reconcile_oca/README.rst,sha256=
|
1
|
+
odoo/addons/account_reconcile_oca/README.rst,sha256=prtN_p-I0t4P6ZpLUC02HI8f355OBn8GIjNWY_jLQeA,3703
|
2
2
|
odoo/addons/account_reconcile_oca/__init__.py,sha256=vqRYeBgCVZMpZhYvILSxVsNLC9V7zDnvxMnKU8RQP94,55
|
3
|
-
odoo/addons/account_reconcile_oca/__manifest__.py,sha256=
|
3
|
+
odoo/addons/account_reconcile_oca/__manifest__.py,sha256=tLeUgbuujCLfygiS63CxCvWDqLtnncfT-1bl_QtVHoU,1865
|
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=RnxHPjPpQk_qZs4ZHFvH13KDHnqQO-ppgcUnULeZxwo,25700
|
@@ -19,7 +19,7 @@ odoo/addons/account_reconcile_oca/i18n/zh_CN.po,sha256=gHrxzsXR_B6rbs_0iU8_-9doe
|
|
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=ndgMwziMe2GsqEucoH0vZMqVmubgBcajJahh1LcNK9s,6709
|
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=
|
22
|
+
odoo/addons/account_reconcile_oca/models/account_bank_statement_line.py,sha256=JC3S1tjEWyuckNMX4At2DZBV9Egzx59sDPcJIlyzz6I,39423
|
23
23
|
odoo/addons/account_reconcile_oca/models/account_journal.py,sha256=97AmJHO5ZOtDqoAWmjW0PZMZ-Mx8jfH4JPWiuwZ4H14,1048
|
24
24
|
odoo/addons/account_reconcile_oca/models/account_move_line.py,sha256=PfdU6cfrKjKMqL_qGqNdyPUWg-frGQ6nR5uCoYtW38M,1212
|
25
25
|
odoo/addons/account_reconcile_oca/models/account_reconcile_abstract.py,sha256=I23ZF31OvY5EqtfNHfm2Pir3JJ3z5CaYjEFr1OZ8oWI,3983
|
@@ -31,7 +31,7 @@ odoo/addons/account_reconcile_oca/readme/ROADMAP.md,sha256=fxR8QnC8BkHyODdPScpgJ
|
|
31
31
|
odoo/addons/account_reconcile_oca/readme/USAGE.md,sha256=yNLGo35X7TW2TLyJqHU-gdQiXazW8Iu59rI0dpa4WjM,365
|
32
32
|
odoo/addons/account_reconcile_oca/security/ir.model.access.csv,sha256=XfN2EKOoChlEDonVd5DtodVAQyRbShiJ8nrXx6EwNmM,339
|
33
33
|
odoo/addons/account_reconcile_oca/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
34
|
-
odoo/addons/account_reconcile_oca/static/description/index.html,sha256=
|
34
|
+
odoo/addons/account_reconcile_oca/static/description/index.html,sha256=Ay7Z28FTzjO58h6jY7mMp9PrGUcSqL-TOmnw2W9cOiU,13790
|
35
35
|
odoo/addons/account_reconcile_oca/static/src/js/reconcile/reconcile_controller.esm.js,sha256=DZsNwb9DCCSurS6VRq93gMJzn4O7_Q-GTl_AzXODlaU,4867
|
36
36
|
odoo/addons/account_reconcile_oca/static/src/js/reconcile/reconcile_kanban_record.esm.js,sha256=ewNK1VQgFZWccTiyJMKYkOG6KtbHHVnI2pdNy9kjkig,467
|
37
37
|
odoo/addons/account_reconcile_oca/static/src/js/reconcile/reconcile_renderer.esm.js,sha256=9NSr3iZ7H_QGTpixW5D4WEJuD_u4KRpdYwRmKqcML_k,2117
|
@@ -53,7 +53,7 @@ odoo/addons/account_reconcile_oca/static/src/scss/reconcile.scss,sha256=b6clO2yW
|
|
53
53
|
odoo/addons/account_reconcile_oca/static/src/xml/reconcile.xml,sha256=hnXWp6pYXbAGf9EjmZaGDb4GHe1CBLGZMbbwbz0WuaY,8637
|
54
54
|
odoo/addons/account_reconcile_oca/tests/__init__.py,sha256=8JhP4auByShS8Z_Ik5dShMuWdh1kBlYP_DLI4Ku8XWA,79
|
55
55
|
odoo/addons/account_reconcile_oca/tests/test_account_reconcile.py,sha256=MP5M-NsVhMoYiU675hr1nsvZRRK-4e5KUYMCCKTUHB8,10807
|
56
|
-
odoo/addons/account_reconcile_oca/tests/test_bank_account_reconcile.py,sha256=
|
56
|
+
odoo/addons/account_reconcile_oca/tests/test_bank_account_reconcile.py,sha256=PX0gsAWccMtmSKNXlJZ-CePkPGJO1T_DCq5tIWeuSgk,46446
|
57
57
|
odoo/addons/account_reconcile_oca/views/account_account.xml,sha256=0RiPmzfRUj54oMYKWM7mLnZL-5IhI5W8fiRruHL0SYc,866
|
58
58
|
odoo/addons/account_reconcile_oca/views/account_account_reconcile.xml,sha256=2FKosNTl4hVC_yVq8uRzZvMMrXyEttK_YTsdnV8o0NI,7016
|
59
59
|
odoo/addons/account_reconcile_oca/views/account_bank_statement.xml,sha256=QrjQZ3OTsnbopdLnnsFaZ0f7ncLkOUbtVj9osXdxw5k,2436
|
@@ -62,7 +62,7 @@ odoo/addons/account_reconcile_oca/views/account_journal.xml,sha256=T5tZ5Ev0psYp7
|
|
62
62
|
odoo/addons/account_reconcile_oca/views/account_move.xml,sha256=BnvchVpOJ31M-kCoe6AHDxHMfrEEgJTPPysxguX3xgE,975
|
63
63
|
odoo/addons/account_reconcile_oca/views/account_move_line.xml,sha256=Kr_ET1IAat3B8UoW6VPQO3q88JLVdE5-5jpb13ioCbY,5405
|
64
64
|
odoo/addons/account_reconcile_oca/views/res_config_settings.xml,sha256=PxIqWILg_L_ahR-SDlDWEqWDJKNumPRifFAGF0BG57E,807
|
65
|
-
odoo_addon_account_reconcile_oca-17.0.1.4.
|
66
|
-
odoo_addon_account_reconcile_oca-17.0.1.4.
|
67
|
-
odoo_addon_account_reconcile_oca-17.0.1.4.
|
68
|
-
odoo_addon_account_reconcile_oca-17.0.1.4.
|
65
|
+
odoo_addon_account_reconcile_oca-17.0.1.4.2.dist-info/METADATA,sha256=NB5VIriV4jqInG0zxxFc7kTDgbfCUfWq7j39dxAJO_k,4388
|
66
|
+
odoo_addon_account_reconcile_oca-17.0.1.4.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
67
|
+
odoo_addon_account_reconcile_oca-17.0.1.4.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
68
|
+
odoo_addon_account_reconcile_oca-17.0.1.4.2.dist-info/RECORD,,
|
File without changes
|