odoo-addon-account-reconcile-oca 17.0.1.4.2__py3-none-any.whl → 17.0.1.5.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.
@@ -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:00ff2a3c7380280d3e7ab038daf1c3cf32e14803b943f63bcdc2f6e2f88a6bee
10
+ !! source digest: sha256:61c0376ab83e2a550caacf1132bed5e0ae10ba54f2c911269a28f3321ac97240
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.2",
8
+ "version": "17.0.1.5.0",
9
9
  "license": "AGPL-3",
10
10
  "author": "CreuBlanca,Dixmit,Odoo Community Association (OCA)",
11
11
  "maintainers": ["etobella"],
@@ -532,7 +532,14 @@ class AccountBankStatementLine(models.Model):
532
532
  res = (
533
533
  self.env["account.reconcile.model"]
534
534
  .search(
535
- [("rule_type", "in", ["invoice_matching", "writeoff_suggestion"])]
535
+ [
536
+ (
537
+ "rule_type",
538
+ "in",
539
+ ["invoice_matching", "writeoff_suggestion"],
540
+ ),
541
+ ("company_id", "=", self.company_id.id),
542
+ ]
536
543
  )
537
544
  ._apply_rules(self, self._retrieve_partner())
538
545
  )
@@ -555,6 +562,8 @@ class AccountBankStatementLine(models.Model):
555
562
  )
556
563
  amount -= sum(line.get("amount") for line in line_data)
557
564
  data += line_data
565
+ if res.get("auto_reconcile"):
566
+ self.reconcile_bank_line()
558
567
  return self._recompute_suspense_line(
559
568
  data,
560
569
  reconcile_auxiliary_id,
@@ -611,6 +620,7 @@ class AccountBankStatementLine(models.Model):
611
620
  check_move_validity=False,
612
621
  skip_sync_invoice=True,
613
622
  skip_invoice_sync=True,
623
+ validate_analytic=True,
614
624
  )
615
625
  .create(self._reconcile_move_line_vals(line_vals))
616
626
  )
@@ -749,6 +759,7 @@ class AccountBankStatementLine(models.Model):
749
759
  models = self.env["account.reconcile.model"].search(
750
760
  [
751
761
  ("rule_type", "in", ["invoice_matching", "writeoff_suggestion"]),
762
+ ("company_id", "in", result.company_id.ids),
752
763
  ("auto_reconcile", "=", True),
753
764
  ]
754
765
  )
@@ -34,3 +34,12 @@ class AccountJournal(models.Model):
34
34
  ):
35
35
  return False
36
36
  return _("Well done! Everything has been reconciled")
37
+
38
+ def open_action(self):
39
+ self.ensure_one()
40
+ if self.type not in ["bank", "cash"]:
41
+ return super().open_action()
42
+ action = self.env["ir.actions.actions"]._for_xml_id(
43
+ "account_reconcile_oca.action_bank_statement_line_reconcile_all"
44
+ )
45
+ return action
@@ -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:00ff2a3c7380280d3e7ab038daf1c3cf32e14803b943f63bcdc2f6e2f88a6bee
370
+ !! source digest: sha256:61c0376ab83e2a550caacf1132bed5e0ae10ba54f2c911269a28f3321ac97240
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&amp;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
@@ -17,6 +17,16 @@ class TestReconciliationWidget(TestAccountReconciliationCommon):
17
17
  def setUpClass(cls, chart_template_ref=None):
18
18
  super().setUpClass(chart_template_ref=chart_template_ref)
19
19
  cls.env = cls.env(context=cls._setup_context())
20
+ # Auto-disable reconciliation model created automatically with
21
+ # generate_account_reconcile_model() to avoid side effects in tests
22
+ cls.invoice_matching_models = cls.env["account.reconcile.model"].search(
23
+ [
24
+ ("rule_type", "=", "invoice_matching"),
25
+ ("auto_reconcile", "=", True),
26
+ ("company_id", "=", cls.company.id),
27
+ ]
28
+ )
29
+ cls.invoice_matching_models.active = False
20
30
 
21
31
  cls.acc_bank_stmt_model = cls.env["account.bank.statement"]
22
32
  cls.acc_bank_stmt_line_model = cls.env["account.bank.statement.line"]
@@ -995,6 +1005,8 @@ class TestReconciliationWidget(TestAccountReconciliationCommon):
995
1005
  }
996
1006
  )
997
1007
 
1008
+ self.invoice_matching_models.active = True
1009
+ self.invoice_matching_models.match_text_location_label = False
998
1010
  bank_stmt_line = self.acc_bank_stmt_line_model.create(
999
1011
  {
1000
1012
  "name": "testLine",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-account_reconcile_oca
3
- Version: 17.0.1.4.2
3
+ Version: 17.0.1.5.0
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:00ff2a3c7380280d3e7ab038daf1c3cf32e14803b943f63bcdc2f6e2f88a6bee
27
+ !! source digest: sha256:61c0376ab83e2a550caacf1132bed5e0ae10ba54f2c911269a28f3321ac97240
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=prtN_p-I0t4P6ZpLUC02HI8f355OBn8GIjNWY_jLQeA,3703
1
+ odoo/addons/account_reconcile_oca/README.rst,sha256=8dxhmwgNI_G666A4jO8CpkAb9UPhvdVJ4BQfu_DhZUI,3703
2
2
  odoo/addons/account_reconcile_oca/__init__.py,sha256=vqRYeBgCVZMpZhYvILSxVsNLC9V7zDnvxMnKU8RQP94,55
3
- odoo/addons/account_reconcile_oca/__manifest__.py,sha256=tLeUgbuujCLfygiS63CxCvWDqLtnncfT-1bl_QtVHoU,1865
3
+ odoo/addons/account_reconcile_oca/__manifest__.py,sha256=RFMNYmR5D_5kaYedJWup0ifa0atYlU9ozGDl9sZFSDU,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,8 +19,8 @@ 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=JC3S1tjEWyuckNMX4At2DZBV9Egzx59sDPcJIlyzz6I,39423
23
- odoo/addons/account_reconcile_oca/models/account_journal.py,sha256=97AmJHO5ZOtDqoAWmjW0PZMZ-Mx8jfH4JPWiuwZ4H14,1048
22
+ odoo/addons/account_reconcile_oca/models/account_bank_statement_line.py,sha256=lAqc6_rpaBiNkQYqznHETpYTWt_aEEMy2P9WiXt-xPo,39848
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
25
  odoo/addons/account_reconcile_oca/models/account_reconcile_abstract.py,sha256=I23ZF31OvY5EqtfNHfm2Pir3JJ3z5CaYjEFr1OZ8oWI,3983
26
26
  odoo/addons/account_reconcile_oca/models/res_company.py,sha256=IaSLPwHJZre5RYPVW8V6mnSoxltS_w0GUN1Ev-cfcB4,354
@@ -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=Ay7Z28FTzjO58h6jY7mMp9PrGUcSqL-TOmnw2W9cOiU,13790
34
+ odoo/addons/account_reconcile_oca/static/description/index.html,sha256=9rraI2_wrTwCBGObV68YnyZ9UcEciY8gpSLiA8wnqgA,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=PX0gsAWccMtmSKNXlJZ-CePkPGJO1T_DCq5tIWeuSgk,46446
56
+ odoo/addons/account_reconcile_oca/tests/test_bank_account_reconcile.py,sha256=jy8F3hWd85x_1tBgPlT84PvfTrqFXLQogx_Dwv-wXEo,47041
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.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,,
65
+ odoo_addon_account_reconcile_oca-17.0.1.5.0.dist-info/METADATA,sha256=iTKmgAYHswPniJIZyNzFEdAKMOCbJqjYQw1ok02UtDA,4388
66
+ odoo_addon_account_reconcile_oca-17.0.1.5.0.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
67
+ odoo_addon_account_reconcile_oca-17.0.1.5.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
68
+ odoo_addon_account_reconcile_oca-17.0.1.5.0.dist-info/RECORD,,