Browse Source

[FIX] Bug Fixed 'base_accounting_kit'

pull/175/head
Ajmal Cybro 4 years ago
parent
commit
465fc50db2
  1. 2
      base_accounting_kit/__manifest__.py
  2. 5
      base_accounting_kit/doc/changelog.md
  3. 3
      base_accounting_kit/models/payment_matching.py

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.9', 'version': '14.0.3.11.10',
'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

@ -76,3 +76,8 @@
- 2 * Dashboard Issue - 2 * Dashboard Issue
- Report Configuration Sequence - Report Configuration Sequence
#### 17.06.2021
#### Version 14.0.3.11.10
#### FIX
- Invalid field 'post_at' in Journal - issue fixed

3
base_accounting_kit/models/payment_matching.py

@ -1062,7 +1062,8 @@ class AccountBankStatementLine(models.Model):
) )
aml_rec.with_context(check_move_validity=False).write({"statement_line_id": self.id}) aml_rec.with_context(check_move_validity=False).write({"statement_line_id": self.id})
counterpart_moves = counterpart_moves | aml_rec.move_id counterpart_moves = counterpart_moves | aml_rec.move_id
if aml_rec.journal_id.post_at == "bank_rec" and aml_rec.payment_id and aml_rec.move_id.state == "draft": # Update
if aml_rec.payment_id and aml_rec.move_id.state == "draft":
# In case the journal is set to only post payments when performing bank # In case the journal is set to only post payments when performing bank
#reconciliation, we modify its date and post it. #reconciliation, we modify its date and post it.
aml_rec.move_id.date = self.date aml_rec.move_id.date = self.date

Loading…
Cancel
Save