odoo-addon-account-reconcile-oca 17.0.1.5.3__py3-none-any.whl → 17.0.1.5.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.
Files changed (18) hide show
  1. odoo/addons/account_reconcile_oca/README.rst +1 -1
  2. odoo/addons/account_reconcile_oca/__manifest__.py +1 -1
  3. odoo/addons/account_reconcile_oca/i18n/account_reconcile_oca.pot +7 -0
  4. odoo/addons/account_reconcile_oca/i18n/es.po +8 -1
  5. odoo/addons/account_reconcile_oca/models/account_account_reconcile.py +21 -9
  6. odoo/addons/account_reconcile_oca/models/account_bank_statement_line.py +331 -52
  7. odoo/addons/account_reconcile_oca/models/account_reconcile_abstract.py +42 -14
  8. odoo/addons/account_reconcile_oca/static/description/index.html +1 -1
  9. odoo/addons/account_reconcile_oca/static/src/js/reconcile_move_line/reconcile_move_line_controller.esm.js +9 -0
  10. odoo/addons/account_reconcile_oca/static/src/js/reconcile_move_line/reconcile_move_line_view.esm.js +1 -0
  11. odoo/addons/account_reconcile_oca/static/src/js/widgets/reconcile_data_widget.esm.js +12 -0
  12. odoo/addons/account_reconcile_oca/static/src/js/widgets/reconcile_move_line_widget.esm.js +2 -1
  13. odoo/addons/account_reconcile_oca/static/src/xml/reconcile.xml +15 -1
  14. odoo/addons/account_reconcile_oca/tests/test_bank_account_reconcile.py +214 -47
  15. {odoo_addon_account_reconcile_oca-17.0.1.5.3.dist-info → odoo_addon_account_reconcile_oca-17.0.1.5.5.dist-info}/METADATA +2 -2
  16. {odoo_addon_account_reconcile_oca-17.0.1.5.3.dist-info → odoo_addon_account_reconcile_oca-17.0.1.5.5.dist-info}/RECORD +18 -18
  17. {odoo_addon_account_reconcile_oca-17.0.1.5.3.dist-info → odoo_addon_account_reconcile_oca-17.0.1.5.5.dist-info}/WHEEL +0 -0
  18. {odoo_addon_account_reconcile_oca-17.0.1.5.3.dist-info → odoo_addon_account_reconcile_oca-17.0.1.5.5.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:25a85af43d834abf67306c2d7fa108d6ecc44f76300ab92e54cc982f8cfe9334
10
+ !! source digest: sha256:cf0d778067ac722c5a6d7f65f8fa4b0766076829ba9c9c147cc3718782cc85b0
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.5.3",
8
+ "version": "17.0.1.5.5",
9
9
  "license": "AGPL-3",
10
10
  "author": "CreuBlanca,Dixmit,Odoo Community Association (OCA)",
11
11
  "maintainers": ["etobella"],
@@ -52,6 +52,13 @@ msgstr ""
52
52
  msgid "Add Bank Statement Line"
53
53
  msgstr ""
54
54
 
55
+ #. module: account_reconcile_oca
56
+ #. odoo-javascript
57
+ #: code:addons/account_reconcile_oca/static/src/xml/reconcile.xml:0
58
+ #, python-format
59
+ msgid "Add all"
60
+ msgstr ""
61
+
55
62
  #. module: account_reconcile_oca
56
63
  #: model:ir.model.fields,field_description:account_reconcile_oca.field_account_bank_statement_line__aggregate_id
57
64
  msgid "Aggregate"
@@ -6,7 +6,7 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: Odoo Server 16.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "PO-Revision-Date: 2025-01-29 18:52+0000\n"
9
+ "PO-Revision-Date: 2025-02-12 08:24+0000\n"
10
10
  "Last-Translator: \"Pedro M. Baeza\" <pedro.baeza@tecnativa.com>\n"
11
11
  "Language-Team: none\n"
12
12
  "Language: es\n"
@@ -58,6 +58,13 @@ msgstr "Añadir apunte contable"
58
58
  msgid "Add Bank Statement Line"
59
59
  msgstr "Añadir línea de extracto bancario"
60
60
 
61
+ #. module: account_reconcile_oca
62
+ #. odoo-javascript
63
+ #: code:addons/account_reconcile_oca/static/src/xml/reconcile.xml:0
64
+ #, python-format
65
+ msgid "Add all"
66
+ msgstr "Añadir todo"
67
+
61
68
  #. module: account_reconcile_oca
62
69
  #: model:ir.model.fields,field_description:account_reconcile_oca.field_account_bank_statement_line__aggregate_id
63
70
  msgid "Aggregate"
@@ -132,16 +132,17 @@ class AccountAccountReconcile(models.Model):
132
132
  @api.onchange("add_account_move_line_id")
133
133
  def _onchange_add_account_move_line(self):
134
134
  if self.add_account_move_line_id:
135
- data = self.reconcile_data_info
136
- if self.add_account_move_line_id.id not in data["counterparts"]:
137
- data["counterparts"].append(self.add_account_move_line_id.id)
138
- else:
139
- del data["counterparts"][
140
- data["counterparts"].index(self.add_account_move_line_id.id)
141
- ]
142
- self.reconcile_data_info = self._recompute_data(data)
135
+ self._add_account_move_line(self.add_account_move_line_id)
143
136
  self.add_account_move_line_id = False
144
137
 
138
+ def _add_account_move_line(self, move_line, keep_current=False):
139
+ data = self.reconcile_data_info
140
+ if move_line.id not in data["counterparts"]:
141
+ data["counterparts"].append(move_line.id)
142
+ elif not keep_current:
143
+ del data["counterparts"][data["counterparts"].index(move_line.id)]
144
+ self.reconcile_data_info = self._recompute_data(data)
145
+
145
146
  @api.onchange("manual_reference", "manual_delete")
146
147
  def _onchange_manual_reconcile_reference(self):
147
148
  self.ensure_one()
@@ -163,7 +164,11 @@ class AccountAccountReconcile(models.Model):
163
164
  amount = 0.0
164
165
  for line_id in counterparts:
165
166
  lines = self._get_reconcile_line(
166
- self.env["account.move.line"].browse(line_id), "other", True, amount
167
+ self.env["account.move.line"].browse(line_id),
168
+ "other",
169
+ is_counterpart=True,
170
+ max_amount=amount,
171
+ move=True,
167
172
  )
168
173
  new_data["data"] += lines
169
174
  amount += sum(line["amount"] for line in lines)
@@ -183,6 +188,13 @@ class AccountAccountReconcile(models.Model):
183
188
  )
184
189
  data_record.unlink()
185
190
 
191
+ def add_multiple_lines(self, domain):
192
+ res = super().add_multiple_lines(domain)
193
+ lines = self.env["account.move.line"].search(domain)
194
+ for line in lines:
195
+ self._add_account_move_line(line, keep_current=True)
196
+ return res
197
+
186
198
 
187
199
  class AccountAccountReconcileData(models.TransientModel):
188
200
  _name = "account.account.reconcile.data"