Browse Source

[UPDT] 'base_accounting_kit' reconciliation issue

pull/175/head
Ajmal Cybro 4 years ago
parent
commit
4436122f04
  1. 2
      base_accounting_kit/__manifest__.py
  2. 5
      base_accounting_kit/doc/changelog.md
  3. 7
      base_accounting_kit/models/payment_matching.py
  4. BIN
      base_accounting_kit/static/description/banner.gif

2
base_accounting_kit/__manifest__.py

@ -22,7 +22,7 @@
{ {
'name': 'Odoo 14 Full Accounting Kit', 'name': 'Odoo 14 Full Accounting Kit',
'version': '14.0.3.11.10', 'version': '14.0.3.11.11',
'category': 'Accounting', 'category': 'Accounting',
'live_test_url': 'https://www.youtube.com/watch?v=peAp2Tx_XIs', 'live_test_url': 'https://www.youtube.com/watch?v=peAp2Tx_XIs',
'summary': """ Asset and Budget Management, 'summary': """ Asset and Budget Management,

5
base_accounting_kit/doc/changelog.md

@ -81,3 +81,8 @@
#### FIX #### FIX
- Invalid field 'post_at' in Journal - issue fixed - Invalid field 'post_at' in Journal - issue fixed
#### 05.07.2021
#### Version 14.0.3.11.11
#### FIX
- 'Journal entry already posted' issue fixed.

7
base_accounting_kit/models/payment_matching.py

@ -1048,7 +1048,6 @@ class AccountBankStatementLine(models.Model):
and user_type_id not in account_types and user_type_id not in account_types
): ):
account_types |= user_type_id account_types |= user_type_id
# Fully reconciled moves are just linked to the bank statement # Fully reconciled moves are just linked to the bank statement
total = self.amount total = self.amount
currency = self.currency_id or statement_currency currency = self.currency_id or statement_currency
@ -1112,7 +1111,8 @@ class AccountBankStatementLine(models.Model):
aml_to_reconcile.append((new_aml, counterpart_move_line)) aml_to_reconcile.append((new_aml, counterpart_move_line))
# Post to allow reconcile # Post to allow reconcile
self.move_id.with_context(skip_account_move_synchronization=True).action_post() if self.move_id.state == 'draft':
self.move_id.with_context(skip_account_move_synchronization=True).action_post()
# Reconcile new lines with counterpart # Reconcile new lines with counterpart
for new_aml, counterpart_move_line in aml_to_reconcile: for new_aml, counterpart_move_line in aml_to_reconcile:
@ -1122,7 +1122,8 @@ class AccountBankStatementLine(models.Model):
# Needs to be called manually as lines were created 1 by 1 # Needs to be called manually as lines were created 1 by 1
self.move_id.update_lines_tax_exigibility() self.move_id.update_lines_tax_exigibility()
self.move_id.with_context(skip_account_move_synchronization=True).action_post() if self.move_id.state == 'draft':
self.move_id.with_context(skip_account_move_synchronization=True).action_post()
# record the move name on the statement line to be able to retrieve # record the move name on the statement line to be able to retrieve
# it in case of unreconciliation # it in case of unreconciliation
self.write({"move_name": self.move_id.name}) self.write({"move_name": self.move_id.name})

BIN
base_accounting_kit/static/description/banner.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

After

Width:  |  Height:  |  Size: 122 KiB

Loading…
Cancel
Save