first commit

This commit is contained in:
Suherdy Yacob 2026-03-06 11:17:22 +07:00
commit 0fc7f3d00e
6 changed files with 58 additions and 0 deletions

17
.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
# Python
__pycache__/
*.py[cod]
*$py.class
# OS
.DS_Store
Thumbs.db
# IDEs
.idea/
.vscode/
# Build
build/
dist/
*.egg-info/

10
README.md Normal file
View File

@ -0,0 +1,10 @@
# Account Bank Rec Date Filter
This Odoo 17 module modifies the bank reconciliation widget so that the "Match Existing Entries" tab only shows journal items on or before the bank statement line's date. This prevents showing future journal items when matching bank statement lines.
## Features
- Overrides `_get_default_amls_matching_domain` in `account.bank.statement.line`.
- Applies a `'date', '<=', statement_line.date` domain filter to counterpart journal items.
## Author
Suherdy Yacob

1
__init__.py Normal file
View File

@ -0,0 +1 @@
from . import models

19
__manifest__.py Normal file
View File

@ -0,0 +1,19 @@
{
'name': 'Account Bank Rec Date Filter',
'version': '17.0.1.0.0',
'category': 'Accounting/Localizations',
'summary': 'Filter bank reconciliation counterpart journal items by statement date',
'description': """
This module modifies the bank reconciliation widget so that the "Match Existing Entries"
tab only shows journal items up to the bank statement line's date.
""",
'author': 'Suherdy Yacob',
'website': '',
'depends': ['account', 'account_accountant'],
'data': [
],
'installable': True,
'application': False,
'auto_install': False,
'license': 'LGPL-3',
}

1
models/__init__.py Normal file
View File

@ -0,0 +1 @@
from . import account_bank_statement_line

View File

@ -0,0 +1,10 @@
from odoo import models, fields
class AccountBankStatementLine(models.Model):
_inherit = 'account.bank.statement.line'
def _get_default_amls_matching_domain(self):
domain = super()._get_default_amls_matching_domain()
if self.date:
domain.append(('date', '<=', fields.Date.to_string(self.date)))
return domain