odoo-addon-account-reconcile-oca 17.0.1.2.3.4__py3-none-any.whl → 17.0.1.2.5__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:03f1bec0fb4d71509ddd5f9fe13713c9f65957e744454883322244ae09e52425
10
+ !! source digest: sha256:92200b09b6310633c2682bfb6982cd9a935abeaac6c3b607cbc8498d38ac8d4f
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.2.3",
8
+ "version": "17.0.1.2.5",
9
9
  "license": "AGPL-3",
10
10
  "author": "CreuBlanca,Dixmit,Odoo Community Association (OCA)",
11
11
  "maintainers": ["etobella"],
@@ -47,7 +47,11 @@ class AccountAccountReconcile(models.Model):
47
47
  SELECT
48
48
  min(aml.id) as id,
49
49
  MAX({account_name}) as name,
50
- aml.partner_id,
50
+ CASE
51
+ WHEN a.account_type in ('asset_receivable', 'liability_payable')
52
+ THEN aml.partner_id
53
+ ELSE NULL
54
+ END as partner_id,
51
55
  a.id as account_id,
52
56
  FALSE as is_reconciled,
53
57
  aml.currency_id as currency_id,
@@ -73,7 +77,14 @@ class AccountAccountReconcile(models.Model):
73
77
  def _groupby(self):
74
78
  return """
75
79
  GROUP BY
76
- a.id, aml.partner_id, aml.currency_id, a.company_id
80
+ a.id,
81
+ CASE
82
+ WHEN a.account_type in ('asset_receivable', 'liability_payable')
83
+ THEN aml.partner_id
84
+ ELSE NULL
85
+ END,
86
+ aml.currency_id,
87
+ a.company_id
77
88
  """
78
89
 
79
90
  def _having(self):
@@ -412,8 +412,9 @@ class AccountBankStatementLine(models.Model):
412
412
  continue
413
413
  new_data.append(line_data)
414
414
  liquidity_amount += line_data["amount"]
415
+
415
416
  for line in reconcile_model._get_write_off_move_lines_dict(
416
- -liquidity_amount, self._retrieve_partner()
417
+ -liquidity_amount, self._retrieve_partner().id
417
418
  ):
418
419
  new_line = line.copy()
419
420
  amount = line.get("balance")
@@ -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:03f1bec0fb4d71509ddd5f9fe13713c9f65957e744454883322244ae09e52425
370
+ !! source digest: sha256:92200b09b6310633c2682bfb6982cd9a935abeaac6c3b607cbc8498d38ac8d4f
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
@@ -33,7 +33,7 @@ export class ReconcileController extends KanbanController {
33
33
  });
34
34
  }
35
35
  get journalId() {
36
- if (this.props.resModel === "account.bank.statement.line") {
36
+ if (this.props.context.active_model === "account.journal") {
37
37
  return this.props.context.active_id;
38
38
  }
39
39
  return false;
@@ -69,6 +69,7 @@ export class ReconcileController extends KanbanController {
69
69
  this.action.doAction(action, {
70
70
  onClose: async () => {
71
71
  await this.model.root.load();
72
+ await this.updateJournalInfo();
72
73
  this.render(true);
73
74
  },
74
75
  });
@@ -23,10 +23,12 @@ export class ReconcileFormController extends FormController {
23
23
  async reloadFormController() {
24
24
  var is_reconciled = this.model.root.data.is_reconciled;
25
25
  await this.model.root.load();
26
- if (!is_reconciled && this.model.root.data.is_reconciled) {
27
- // This only happens when we press the reconcile button
28
- if (this.env.parentController) {
29
- // Showing rainbow man
26
+ if (this.env.parentController) {
27
+ // We will update the parent controller every time we reload the form.
28
+ await this.env.parentController.model.root.load();
29
+ await this.env.parentController.render(true);
30
+ if (!is_reconciled && this.model.root.data.is_reconciled) {
31
+ // This only happens when we press the reconcile button for showing rainbow man
30
32
  const message = await this.orm.call(
31
33
  "account.journal",
32
34
  "get_rainbowman_message",
@@ -36,8 +38,6 @@ export class ReconcileFormController extends FormController {
36
38
  this.env.parentController.setRainbowMan(message);
37
39
  }
38
40
  // Refreshing
39
- await this.env.parentController.model.root.load();
40
- await this.env.parentController.render(true);
41
41
  this.env.parentController.selectRecord();
42
42
  }
43
43
  }
@@ -2,9 +2,10 @@
2
2
 
3
3
  // import {ChatterContainer} from "@mail/components/chatter_container/chatter_container";
4
4
  // import {Chatter} from "@mail/core/web/chatter";
5
+ import {Chatter} from "@mail/core/web/chatter";
6
+
5
7
  import {registry} from "@web/core/registry";
6
8
  import {standardFieldProps} from "@web/views/fields/standard_field_props";
7
- import {Chatter} from "@mail/core/web/chatter";
8
9
 
9
10
  const {Component} = owl;
10
11
 
@@ -13,6 +13,7 @@
13
13
  type="action"
14
14
  name="%(account_reconcile_oca.action_bank_statement_line_move_view_reconcile)s"
15
15
  string="Bank reconcile"
16
+ context="{'search_default_move_id': id}"
16
17
  class="btn btn-primary"
17
18
  icon="fa-list"
18
19
  invisible="statement_line_id == False"
@@ -45,7 +45,7 @@
45
45
  <field
46
46
  name="name"
47
47
  string="Journal Item"
48
- filter_domain="[ '|', '|', '|', ('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self)]"
48
+ filter_domain="['|','|','|','|','|',('name', 'ilike', self), ('ref', 'ilike', self), ('account_id', 'ilike', self), ('partner_id', 'ilike', self),('amount_residual', 'ilike', self),('amount_residual_currency', 'ilike', self)]"
49
49
  />
50
50
  <field name="name" />
51
51
  <field name="ref" />
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-account_reconcile_oca
3
- Version: 17.0.1.2.3.4
3
+ Version: 17.0.1.2.5
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:03f1bec0fb4d71509ddd5f9fe13713c9f65957e744454883322244ae09e52425
27
+ !! source digest: sha256:92200b09b6310633c2682bfb6982cd9a935abeaac6c3b607cbc8498d38ac8d4f
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=PbKpGeWBHAX42lgBJwjJg4nr9BFh0xblfrUtlsBrioU,3705
1
+ odoo/addons/account_reconcile_oca/README.rst,sha256=vGevSoZh3BxKjcsk2RjdD2qoAxkDx7VYHgdnni_jpwI,3705
2
2
  odoo/addons/account_reconcile_oca/__init__.py,sha256=vqRYeBgCVZMpZhYvILSxVsNLC9V7zDnvxMnKU8RQP94,55
3
- odoo/addons/account_reconcile_oca/__manifest__.py,sha256=UXCITmLMJR166b9KxYFc1wWXxg6u6kRT5Rkk0Wu84Po,1865
3
+ odoo/addons/account_reconcile_oca/__manifest__.py,sha256=xgnaDp3gDBt-uPjQT4t54txks4uCOwgTL8Jrw_crPXo,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=9UOhPKG5DfwfMg5ObblMLVNVM_lytFb73FPofYcizBQ,24737
@@ -17,9 +17,9 @@ odoo/addons/account_reconcile_oca/i18n/tr.po,sha256=8lm8XUGS8pNgRGyFYbq6viiTZEBP
17
17
  odoo/addons/account_reconcile_oca/i18n/zh.po,sha256=o2A4aydTJCAHqqSLptHc-T1otbLM0vXPeZPbnDndyGE,24802
18
18
  odoo/addons/account_reconcile_oca/i18n/zh_CN.po,sha256=guv58ZKxU3o6Ma7kLV4oUFamA3KUBnEFvR2XwJt-lFY,26541
19
19
  odoo/addons/account_reconcile_oca/models/__init__.py,sha256=28wbZjUZa30uHQY10BMJtKQ_BqJgwLQMQvB9uv0H_fY,282
20
- odoo/addons/account_reconcile_oca/models/account_account_reconcile.py,sha256=H84BGOSCCjrdrocXhq6c0jJb9Cm6BySg5Ay-UQmZ1z4,6285
20
+ odoo/addons/account_reconcile_oca/models/account_account_reconcile.py,sha256=UOIg0kqkfhn8stNsT5BtfD8Sl8x9mfMY043qbFKI_h0,6689
21
21
  odoo/addons/account_reconcile_oca/models/account_bank_statement.py,sha256=JuIl9m0FzsoD_29Vb4TiXYoqFLd6gjSvntpRB_JrVLU,463
22
- odoo/addons/account_reconcile_oca/models/account_bank_statement_line.py,sha256=tX8UnS7XYAeRvOJbnDfyKlMYs1IsOjlZln6dklVweGE,34616
22
+ odoo/addons/account_reconcile_oca/models/account_bank_statement_line.py,sha256=oi_oOQHjAoT0w3OuSu9T9Jd9dNJiSFwoNBQtXYiy1MU,34620
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=ZjGOeX4-kw7bLjr_CtBGOcxvACGrCrSmgB_eANNWq-w,1099
25
25
  odoo/addons/account_reconcile_oca/models/account_reconcile_abstract.py,sha256=hkFDd9AhLXmpgQ-28HsyAr7LkDdcUO3Y3skx9oZbRO8,4150
@@ -31,12 +31,12 @@ 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=Y0jcS79cc-y52sf04SrzHWYH4CELzRXf5vDRX3G6UBg,13790
35
- odoo/addons/account_reconcile_oca/static/src/js/reconcile/reconcile_controller.esm.js,sha256=bdOQxAg_1tQ1XH87z0OOCViERNu_aYMDy3pZ0YNX2aQ,4819
34
+ odoo/addons/account_reconcile_oca/static/description/index.html,sha256=DODzhBxL_rJJmkZBW2dYxYLvUU7qOOWG2EnlmRigT74,13790
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
38
38
  odoo/addons/account_reconcile_oca/static/src/js/reconcile/reconcile_view.esm.js,sha256=cVNQ5mpho24LnHPN5uC2aAU8cD729TjaO85z5mq9kag,535
39
- odoo/addons/account_reconcile_oca/static/src/js/reconcile_form/reconcile_form_controller.esm.js,sha256=7EyyPuo9rBx1eZiYL6mpR2fIqNvP33JvOJiI9NA6cXo,1748
39
+ odoo/addons/account_reconcile_oca/static/src/js/reconcile_form/reconcile_form_controller.esm.js,sha256=ndAS5dJiw_mdda-yi6y2_bSxDGbrTsFr4KzDT1ZV8PU,1812
40
40
  odoo/addons/account_reconcile_oca/static/src/js/reconcile_form/reconcile_form_notebook.esm.js,sha256=csG1CGQJEj3atDyyKSpkhIPUIfOuWJAbS00aYDMFmdY,974
41
41
  odoo/addons/account_reconcile_oca/static/src/js/reconcile_form/reconcile_form_renderer.esm.js,sha256=4QBWIcvrYTVKnFdKbRLkRtEi0s_bYJYLSwPIZeeAs5s,332
42
42
  odoo/addons/account_reconcile_oca/static/src/js/reconcile_form/reconcile_form_view.esm.js,sha256=tG43BF1TUtYmCdc89OKnma5210UvIjvomcuxDJ9_8hY,470
@@ -45,7 +45,7 @@ odoo/addons/account_reconcile_oca/static/src/js/reconcile_manual/reconcile_manua
45
45
  odoo/addons/account_reconcile_oca/static/src/js/reconcile_move_line/reconcile_move_line_controller.esm.js,sha256=QWLzFB7fNAK1hj_mUGDAeu5J8LmTDj6kOkswtyM5G6s,598
46
46
  odoo/addons/account_reconcile_oca/static/src/js/reconcile_move_line/reconcile_move_line_renderer.esm.js,sha256=TwiLpAbPJtr9VDZs8ZDIVFoieiogueHnpw0n0a1P_Kk,605
47
47
  odoo/addons/account_reconcile_oca/static/src/js/reconcile_move_line/reconcile_move_line_view.esm.js,sha256=TFHNQB-A2wyBlfUHXpqKBt_-ICY0pbO90n4ao9dCVBI,510
48
- odoo/addons/account_reconcile_oca/static/src/js/widgets/reconcile_chatter_field.esm.js,sha256=_Q01ZrNtgaxhJRvlB_UF2gWDLGhVX1lljPmf8ZxXJ3c,901
48
+ odoo/addons/account_reconcile_oca/static/src/js/widgets/reconcile_chatter_field.esm.js,sha256=w8vDPCCovRJRKYZtp1XnlWGNGXDfvoJYuttKF-jpTHw,902
49
49
  odoo/addons/account_reconcile_oca/static/src/js/widgets/reconcile_data_widget.esm.js,sha256=-Tjt96wi2UnHK4FM1-rqzd97Ht82HqA8RhHCLmVfxyA,2863
50
50
  odoo/addons/account_reconcile_oca/static/src/js/widgets/reconcile_move_line_widget.esm.js,sha256=G5lbsagkTYErqNlPvhW0vfljQWRKI4eI5spDlH3_emk,3772
51
51
  odoo/addons/account_reconcile_oca/static/src/js/widgets/selection_badge_uncheck.esm.js,sha256=rlwwhfX9jK65Lze3HeXFmW-p6Lo_38ZsyTLS7sx4XV8,1223
@@ -59,10 +59,10 @@ odoo/addons/account_reconcile_oca/views/account_account_reconcile.xml,sha256=2FK
59
59
  odoo/addons/account_reconcile_oca/views/account_bank_statement.xml,sha256=6AA1iZR1EmnVYyBXhLw51QQS1k9QmXLLNMAPDOl8Oz4,1813
60
60
  odoo/addons/account_reconcile_oca/views/account_bank_statement_line.xml,sha256=DrPBdQaYUM2BxlhjFfwWFA0amTNnvd_oaL_V6pd53v0,20822
61
61
  odoo/addons/account_reconcile_oca/views/account_journal.xml,sha256=T5tZ5Ev0psYp78f3NkNVJjWMUOssYJ7WzLpsMKyOvI4,3378
62
- odoo/addons/account_reconcile_oca/views/account_move.xml,sha256=vMLfS41u1POGDRaRwihuvcJjJpJcduwLy9-9WwhdS0U,914
63
- odoo/addons/account_reconcile_oca/views/account_move_line.xml,sha256=PPmlSjmsurhY9hFAdOG5RoPwUF9U0QiprxjQDOuuzQY,5370
62
+ odoo/addons/account_reconcile_oca/views/account_move.xml,sha256=BnvchVpOJ31M-kCoe6AHDxHMfrEEgJTPPysxguX3xgE,975
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.2.3.4.dist-info/METADATA,sha256=oQpODh9WfRxmtxM4lk0-GD-QZGnhM9o7v1GFIOZexv4,4392
66
- odoo_addon_account_reconcile_oca-17.0.1.2.3.4.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
67
- odoo_addon_account_reconcile_oca-17.0.1.2.3.4.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
68
- odoo_addon_account_reconcile_oca-17.0.1.2.3.4.dist-info/RECORD,,
65
+ odoo_addon_account_reconcile_oca-17.0.1.2.5.dist-info/METADATA,sha256=Iu43oz_CVWwW4AChh2HPgXrmHJ36Kx2wl5L7yxOcVGo,4390
66
+ odoo_addon_account_reconcile_oca-17.0.1.2.5.dist-info/WHEEL,sha256=8Rd4enx1PCuyDWP4SABqO5Fv8rpaknqp3VzjoFFLa6c,83
67
+ odoo_addon_account_reconcile_oca-17.0.1.2.5.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
68
+ odoo_addon_account_reconcile_oca-17.0.1.2.5.dist-info/RECORD,,