odoo-addon-account-reconcile-oca 16.0.2.4.3.1__py3-none-any.whl → 16.0.2.4.4__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:2c664a31dd1d468197f62d92bb7bb378e604316a4fbff9d6935592a06fdfd91c
14
+ !! source digest: sha256:20190ee0d147102119092129bc421e85f57876226958d9ba90b4340d5142f703
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": "16.0.2.4.3",
8
+ "version": "16.0.2.4.4",
9
9
  "license": "AGPL-3",
10
10
  "author": "CreuBlanca,Dixmit,Odoo Community Association (OCA)",
11
11
  "maintainers": ["etobella"],
@@ -514,6 +514,11 @@ msgstr ""
514
514
  msgid "Payable"
515
515
  msgstr ""
516
516
 
517
+ #. module: account_reconcile_oca
518
+ #: model:ir.model.fields,field_description:account_reconcile_oca.field_account_bank_statement_line__previous_manual_amount_in_currency
519
+ msgid "Previous Manual Amount In Currency"
520
+ msgstr ""
521
+
517
522
  #. module: account_reconcile_oca
518
523
  #: model_terms:ir.ui.view,arch_db:account_reconcile_oca.account_move_line_search_reconcile_view
519
524
  msgid "Purchases"
@@ -80,6 +80,12 @@ class AccountBankStatementLine(models.Model):
80
80
  prefetch=False,
81
81
  currency_field="manual_in_currency_id",
82
82
  )
83
+ previous_manual_amount_in_currency = fields.Monetary(
84
+ store=False,
85
+ default=False,
86
+ prefetch=False,
87
+ currency_field="manual_in_currency_id",
88
+ )
83
89
  manual_exchange_counterpart = fields.Boolean(
84
90
  store=False,
85
91
  )
@@ -398,6 +404,7 @@ class AccountBankStatementLine(models.Model):
398
404
  "currency_id"
399
405
  ] != line.get("line_currency_id")
400
406
  self.manual_amount_in_currency = line.get("currency_amount")
407
+ self.previous_manual_amount_in_currency = line.get("currency_amount")
401
408
  self.manual_name = line["name"]
402
409
  self.manual_exchange_counterpart = line.get("is_exchange_counterpart", False)
403
410
  self.manual_partner_id = line.get("partner_id") and line["partner_id"][0]
@@ -416,10 +423,6 @@ class AccountBankStatementLine(models.Model):
416
423
  data = self.reconcile_data_info.get("data", [])
417
424
  new_data = []
418
425
  related_move_line_id = False
419
- for line in data:
420
- if line.get("reference") == self.manual_reference:
421
- related_move_line_id = line.get("id")
422
- break
423
426
  for line in data:
424
427
  if (
425
428
  self.manual_delete
@@ -443,21 +446,6 @@ class AccountBankStatementLine(models.Model):
443
446
  )
444
447
  self.can_reconcile = self.reconcile_data_info.get("can_reconcile", False)
445
448
 
446
- @api.onchange("manual_amount_in_currency")
447
- def _onchange_manual_amount_in_currency(self):
448
- if (
449
- self.manual_line_id.exists()
450
- and self.manual_line_id
451
- and self.manual_kind != "liquidity"
452
- ):
453
- self.manual_amount = self.manual_in_currency_id._convert(
454
- self.manual_amount_in_currency,
455
- self.company_id.currency_id,
456
- self.company_id,
457
- self.manual_line_id.date,
458
- )
459
- self._onchange_manual_reconcile_vals()
460
-
461
449
  def _get_manual_reconcile_vals(self):
462
450
  vals = {
463
451
  "name": self.manual_name,
@@ -471,6 +459,7 @@ class AccountBankStatementLine(models.Model):
471
459
  "credit": -self.manual_amount if self.manual_amount < 0 else 0.0,
472
460
  "debit": self.manual_amount if self.manual_amount > 0 else 0.0,
473
461
  "analytic_distribution": self.analytic_distribution,
462
+ "currency_amount": self.manual_amount_in_currency,
474
463
  }
475
464
  liquidity_lines, _suspense_lines, _other_lines = self._seek_for_lines()
476
465
  if self.manual_line_id and self.manual_line_id.id not in liquidity_lines.ids:
@@ -492,11 +481,35 @@ class AccountBankStatementLine(models.Model):
492
481
  "manual_name",
493
482
  "manual_amount",
494
483
  "analytic_distribution",
484
+ "manual_amount_in_currency",
495
485
  )
496
486
  def _onchange_manual_reconcile_vals(self):
497
487
  self.ensure_one()
498
488
  data = self.reconcile_data_info.get("data", [])
499
489
  new_data = []
490
+ if (
491
+ self.manual_in_currency_id
492
+ and float_compare(
493
+ self.manual_amount_in_currency,
494
+ self.previous_manual_amount_in_currency,
495
+ precision_rounding=self.manual_in_currency_id.rounding,
496
+ )
497
+ != 0
498
+ ):
499
+ in_currency_date = self.date
500
+ if (
501
+ self.manual_line_id.exists()
502
+ and self.manual_line_id
503
+ and self.manual_kind != "liquidity"
504
+ ):
505
+ in_currency_date = self.manual_line_id.date
506
+ self.manual_amount = self.manual_in_currency_id._convert(
507
+ self.manual_amount_in_currency,
508
+ self.manual_currency_id,
509
+ self.company_id,
510
+ in_currency_date,
511
+ )
512
+ self.previous_manual_amount_in_currency = self.manual_amount_in_currency
500
513
  for line in data:
501
514
  if line["reference"] == self.manual_reference:
502
515
  if self._check_line_changed(line):
@@ -519,6 +532,7 @@ class AccountBankStatementLine(models.Model):
519
532
  )
520
533
  line.update(
521
534
  {
535
+ "currency_amount": self.manual_amount_in_currency,
522
536
  "amount": amount,
523
537
  "credit": -amount if amount < 0 else 0.0,
524
538
  "debit": amount if amount > 0 else 0.0,
@@ -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:2c664a31dd1d468197f62d92bb7bb378e604316a4fbff9d6935592a06fdfd91c
375
+ !! source digest: sha256:20190ee0d147102119092129bc421e85f57876226958d9ba90b4340d5142f703
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/16.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-16-0/account-reconcile-16-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=16.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 <cite>reconcile</cite>.</p>
@@ -212,6 +212,7 @@
212
212
  <field name="is_reconciled" invisible="1" />
213
213
  <field name="foreign_currency_id" invisible="1" />
214
214
  <field name="company_currency_id" invisible="1" />
215
+ <field name="previous_manual_amount_in_currency" invisible="1" />
215
216
  <field name="currency_id" invisible="1" />
216
217
  <field
217
218
  name="reconcile_data_info"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-account_reconcile_oca
3
- Version: 16.0.2.4.3.1
3
+ Version: 16.0.2.4.4
4
4
  Summary: Reconcile addons for Odoo CE accounting
5
5
  Home-page: https://github.com/OCA/account-reconcile
6
6
  Author: CreuBlanca,Dixmit,Odoo Community Association (OCA)
@@ -27,7 +27,7 @@ Account Reconcile Oca
27
27
  !! This file is generated by oca-gen-addon-readme !!
28
28
  !! changes will be overwritten. !!
29
29
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
30
- !! source digest: sha256:2c664a31dd1d468197f62d92bb7bb378e604316a4fbff9d6935592a06fdfd91c
30
+ !! source digest: sha256:20190ee0d147102119092129bc421e85f57876226958d9ba90b4340d5142f703
31
31
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
32
32
 
33
33
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,9 +1,9 @@
1
- odoo/addons/account_reconcile_oca/README.rst,sha256=CygrS7a5xblzCvyC3vtFGaqinjFnXwX42VOpaRd_OBw,4210
1
+ odoo/addons/account_reconcile_oca/README.rst,sha256=rEUV64GDX1Dbvfz_mRmc_bX41UALlAO8FQ-zlyvXASI,4210
2
2
  odoo/addons/account_reconcile_oca/__init__.py,sha256=vqRYeBgCVZMpZhYvILSxVsNLC9V7zDnvxMnKU8RQP94,55
3
- odoo/addons/account_reconcile_oca/__manifest__.py,sha256=eBlUMdWGoQ8fXhh8Yn0bKh797Jptu1DQe2BY0ywvZ1M,1859
3
+ odoo/addons/account_reconcile_oca/__manifest__.py,sha256=-lsnHbm7i9hRWpJdNxmxU11050DEq7rTmvxelkOIIAY,1859
4
4
  odoo/addons/account_reconcile_oca/hooks.py,sha256=l2-vYiPh-Wu_4Hi3GvfoUmc527S-Jozb07-DbP6LzDA,187
5
5
  odoo/addons/account_reconcile_oca/demo/demo.xml,sha256=6k0uK-H1aBiyogVNhQMQfFGL5zUfUGV2M-sSV6LHeUs,204
6
- odoo/addons/account_reconcile_oca/i18n/account_reconcile_oca.pot,sha256=ZraEc6dS7yyqCeS7IgfN-_P9LBxP5qWl0NDtKD0SCf0,27065
6
+ odoo/addons/account_reconcile_oca/i18n/account_reconcile_oca.pot,sha256=U3FnhiYPGvtS34Pj9ukKklmAgC5ie3Ywb0br8u6FN9k,27287
7
7
  odoo/addons/account_reconcile_oca/i18n/ca.po,sha256=kk1CVlUJsavyMqq8Dgw4GdG_xSENOjpw9ODWs8saXgc,29073
8
8
  odoo/addons/account_reconcile_oca/i18n/de.po,sha256=_TWKW1hHSyds4RfKYLq0MUM8V74OHfHje4JPRLIw4nA,27135
9
9
  odoo/addons/account_reconcile_oca/i18n/es.po,sha256=QLPGXS5YQQFaNepoHvI0IMqlzfEMRtWs0vNXhkq4GBA,30007
@@ -19,7 +19,7 @@ odoo/addons/account_reconcile_oca/migrations/16.0.1.2.0/pre-migration.py,sha256=
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=kO8O0cfsxwXc--MbaJ12sc9QhOIVMVrl5rYpmnrVO-0,7523
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=UaOW80otIKK3OWQc9toe5DPrQkUexyooLSI2z8w0a2w,52340
22
+ odoo/addons/account_reconcile_oca/models/account_bank_statement_line.py,sha256=DqD1MtRMWgHHweOQqePcdJOAJv3yuODI9ybHyBAiOQo,52954
23
23
  odoo/addons/account_reconcile_oca/models/account_journal.py,sha256=8vluuQ0q0rGmVnJWyaSOAhTD0WZQuawKNqhUCEEYRvo,1306
24
24
  odoo/addons/account_reconcile_oca/models/account_move_line.py,sha256=yLNHitduzhS5ShrWWw31S5zirIadFsG8ga1gtXehRTc,1213
25
25
  odoo/addons/account_reconcile_oca/models/account_reconcile_abstract.py,sha256=ByjBoDd9EECUZNfFGZ1d57QZjnYS8OkKrULNW6zkyg4,5034
@@ -32,7 +32,7 @@ odoo/addons/account_reconcile_oca/readme/USAGE.rst,sha256=Vr2Odh3VlB7F-pWq5CqnP5
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=P-OAFirLGb5CZGteaBo32rQZkBtO6UIgHndZteqpTj0,14397
35
+ odoo/addons/account_reconcile_oca/static/description/index.html,sha256=V_05igw3zyDtlXoHAHTa3WusZVZrQsI4Rk0kK5pZtF8,14397
36
36
  odoo/addons/account_reconcile_oca/static/description/reconcile-model-full.png,sha256=gzF5JHp5XjYi7VWFIknCzEIYDlfUKkeeH0nCFR2KLNU,135838
37
37
  odoo/addons/account_reconcile_oca/static/description/reconcile-model-partial.png,sha256=YXlvsPVtDcHZvwv5yZfHGeyMvmxngzGsQWPicrLpFds,137158
38
38
  odoo/addons/account_reconcile_oca/static/src/js/reconcile/reconcile_controller.esm.js,sha256=4bw-Dc1pmVx6sv-fBzyPfBj-rZrqFUVZ8C19n9Pfpi0,4880
@@ -60,12 +60,12 @@ odoo/addons/account_reconcile_oca/tests/test_bank_account_reconcile.py,sha256=36
60
60
  odoo/addons/account_reconcile_oca/views/account_account.xml,sha256=Z6S9dDF2CnaSl8CYw69dxJiuVznJZzZX2BrhaDeMP3c,916
61
61
  odoo/addons/account_reconcile_oca/views/account_account_reconcile.xml,sha256=yGOV7nOj5dVwp09ItOIfvNiBQrO_FpAC36gcnjI98JE,7066
62
62
  odoo/addons/account_reconcile_oca/views/account_bank_statement.xml,sha256=e8ojLqYeZaMdTj-F0QdmFST4ICAlaKV66SJPkHXCdEU,2473
63
- odoo/addons/account_reconcile_oca/views/account_bank_statement_line.xml,sha256=FB6nqwcsYh7vJ0POFdQDYNUPdjka4FO1HVFJ-Ko06js,21635
63
+ odoo/addons/account_reconcile_oca/views/account_bank_statement_line.xml,sha256=GLdrmzmY_NISwI35_1wGowHv0mfY6tY-imhiIznTvMI,21717
64
64
  odoo/addons/account_reconcile_oca/views/account_journal.xml,sha256=WQGxMPgl4Um-IhSCzMXlbUoOjjkB11I9L2YHk1p3rak,3434
65
65
  odoo/addons/account_reconcile_oca/views/account_move.xml,sha256=qMXpycJJfaztyToulMmLY1NF2UDL2lcZM-m1tTiAoRY,995
66
66
  odoo/addons/account_reconcile_oca/views/account_move_line.xml,sha256=BfObEwM6vXHMtxOFMOGDdCPOWO4ybz3w1_fm4_ufqM0,5274
67
67
  odoo/addons/account_reconcile_oca/views/res_config_settings.xml,sha256=hL06Z_0Eg96LU6ta7VHRaheUDehJ6tVexBjU6X52Vng,1412
68
- odoo_addon_account_reconcile_oca-16.0.2.4.3.1.dist-info/METADATA,sha256=aGuGWPBY_5OL8nalj3Est-yhQb2K8Lv4dQtjgdtmdlc,4825
69
- odoo_addon_account_reconcile_oca-16.0.2.4.3.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
70
- odoo_addon_account_reconcile_oca-16.0.2.4.3.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
71
- odoo_addon_account_reconcile_oca-16.0.2.4.3.1.dist-info/RECORD,,
68
+ odoo_addon_account_reconcile_oca-16.0.2.4.4.dist-info/METADATA,sha256=B2r9BFTvnVW_CzqFoy8DUyYxf-VPsWMhP1TVPp_5Alg,4823
69
+ odoo_addon_account_reconcile_oca-16.0.2.4.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
70
+ odoo_addon_account_reconcile_oca-16.0.2.4.4.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
71
+ odoo_addon_account_reconcile_oca-16.0.2.4.4.dist-info/RECORD,,