From f923ca06ecd2b29f47f708fc6c1a2f135875874e Mon Sep 17 00:00:00 2001 From: "admin.suherdy" Date: Sat, 6 Dec 2025 19:14:30 +0700 Subject: [PATCH] feat: Add `account_accountant` dependency and enable showing and persisting reconciliation references in bank reconciliation. --- README.md | 110 +++++++++--------- __init__.py | 4 +- __manifest__.py | 60 +++++----- __pycache__/__init__.cpython-310.pyc | Bin 0 -> 226 bytes models/__init__.py | 2 +- models/__pycache__/__init__.cpython-310.pyc | Bin 0 -> 242 bytes .../bank_rec_widget.cpython-310.pyc | Bin 0 -> 1646 bytes models/bank_rec_widget.py | 72 ++++++------ static/src/xml/bank_rec_form_inherit.xml | 56 ++++----- views/account_reconcile_views.xml | 30 ++--- views/bank_rec_widget_views.xml | 82 ++++++------- 11 files changed, 208 insertions(+), 208 deletions(-) create mode 100644 __pycache__/__init__.cpython-310.pyc create mode 100644 models/__pycache__/__init__.cpython-310.pyc create mode 100644 models/__pycache__/bank_rec_widget.cpython-310.pyc diff --git a/README.md b/README.md index a065f50..46e0180 100644 --- a/README.md +++ b/README.md @@ -1,56 +1,56 @@ -# Account Reconciliation Reference - -## Overview -This Odoo module enhances the bank reconciliation interface by displaying and managing reference information more effectively. It adds visibility and functionality for the 'ref' field across various reconciliation views and operations. - -## Features - -### Bank Reconciliation Views -- **Kanban Cards**: Shows the 'ref' field on bank reconciliation kanban cards for `account.bank.statement.line` records -- **List View**: Adds 'ref' column to bank reconciliation list view, making it visible by default -- **Search Functionality**: Includes 'ref' field in the bank reconciliation search, allowing users to filter by reference - -### Journal Items Reconciliation -- Displays 'ref' field in Journal Items Reconcile list view for better visibility of reference information - -### Manual Operations Panel -- Shows reference field in the Manual Operations panel for non-liquidity lines -- Makes the reference field editable for liquidity lines in the reconciliation form -- Persists the reference value to both the journal entry (`move.ref`) and statement line (`st_line.ref`) when entered - -### Data Persistence -- When a reference is entered in Manual Operations, it's saved to both the journal entry reference and the statement line reference -- Reference values are maintained after validation and reconciliation operations -- Reference data is preserved when clicking Validate in reconciliation interface - -## Technical Implementation - -### Models -- Extends `bank.rec.widget` model to handle reference field persistence -- Implements `_line_value_changed_ref()` method to persist reference values to both journal entry and statement line -- Overrides `_action_validate()` method to ensure reference values are saved before reconciliation - -### Views -- Extends kanban view for `account.bank.statement.line` to display reference -- Modifies tree view for `account.bank.statement.line` to show reference column by default -- Updates search view for `account.bank.statement.line` to include reference in search -- Extends reconciliation tree view for `account.move.line` to show reference field -- Custom XML template extends the manual operations panel in reconciliation form - -## Usage - -1. Navigate to the bank reconciliation interface -2. References will now be visible in kanban cards and list views -3. Use the search functionality to filter by reference -4. In Manual Operations panel, you can view and edit references for liquidity lines -5. When entering a reference and validating, it will be persisted to both the journal entry and statement line - -## Dependencies -- `account_accountant` - Core accounting module with reconciliation features - -## Compatibility -- Odoo Version: 17.0 -- Module Version: 17.0.1.0.2 - -## License +# Account Reconciliation Reference + +## Overview +This Odoo module enhances the bank reconciliation interface by displaying and managing reference information more effectively. It adds visibility and functionality for the 'ref' field across various reconciliation views and operations. + +## Features + +### Bank Reconciliation Views +- **Kanban Cards**: Shows the 'ref' field on bank reconciliation kanban cards for `account.bank.statement.line` records +- **List View**: Adds 'ref' column to bank reconciliation list view, making it visible by default +- **Search Functionality**: Includes 'ref' field in the bank reconciliation search, allowing users to filter by reference + +### Journal Items Reconciliation +- Displays 'ref' field in Journal Items Reconcile list view for better visibility of reference information + +### Manual Operations Panel +- Shows reference field in the Manual Operations panel for non-liquidity lines +- Makes the reference field editable for liquidity lines in the reconciliation form +- Persists the reference value to both the journal entry (`move.ref`) and statement line (`st_line.ref`) when entered + +### Data Persistence +- When a reference is entered in Manual Operations, it's saved to both the journal entry reference and the statement line reference +- Reference values are maintained after validation and reconciliation operations +- Reference data is preserved when clicking Validate in reconciliation interface + +## Technical Implementation + +### Models +- Extends `bank.rec.widget` model to handle reference field persistence +- Implements `_line_value_changed_ref()` method to persist reference values to both journal entry and statement line +- Overrides `_action_validate()` method to ensure reference values are saved before reconciliation + +### Views +- Extends kanban view for `account.bank.statement.line` to display reference +- Modifies tree view for `account.bank.statement.line` to show reference column by default +- Updates search view for `account.bank.statement.line` to include reference in search +- Extends reconciliation tree view for `account.move.line` to show reference field +- Custom XML template extends the manual operations panel in reconciliation form + +## Usage + +1. Navigate to the bank reconciliation interface +2. References will now be visible in kanban cards and list views +3. Use the search functionality to filter by reference +4. In Manual Operations panel, you can view and edit references for liquidity lines +5. When entering a reference and validating, it will be persisted to both the journal entry and statement line + +## Dependencies +- `account_accountant` - Core accounting module with reconciliation features + +## Compatibility +- Odoo Version: 17.0 +- Module Version: 17.0.1.0.2 + +## License LGPL-3 \ No newline at end of file diff --git a/__init__.py b/__init__.py index a6ffc5f..e90f752 100644 --- a/__init__.py +++ b/__init__.py @@ -1,3 +1,3 @@ -# -*- coding: utf-8 -*- -# Account Reconciliation Reference addon +# -*- coding: utf-8 -*- +# Account Reconciliation Reference addon from . import models \ No newline at end of file diff --git a/__manifest__.py b/__manifest__.py index cd9760c..fce6818 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,31 +1,31 @@ -# -*- coding: utf-8 -*- -{ - 'name': 'Account Reconciliation Reference', - 'version': '17.0.1.0.2', - 'category': 'Accounting/Accounting', - 'summary': 'Show Reference on reconciliation kanban/list and add to search', - 'description': """ -Show Reference on reconciliation UI -- Adds 'ref' on bank reconciliation kanban cards (account.bank.statement.line) -- Shows 'ref' column in bank reconciliation list view -- Adds 'ref' field in bank reconciliation search -- Also shows 'ref' in Journal Items Reconcile list -- Shows 'ref' on Manual Operations panel and persists it on Validate -""", - 'author': 'Your Company', - 'website': 'https://example.com', - 'license': 'LGPL-3', - 'depends': ['account_accountant'], - 'data': [ - 'views/account_reconcile_views.xml', - 'views/bank_rec_widget_views.xml', - ], - 'assets': { - 'web.assets_backend': [ - 'account_reconcile_reference/static/src/xml/bank_rec_form_inherit.xml', - ], - }, - 'installable': True, - 'auto_install': False, - 'application': False, +# -*- coding: utf-8 -*- +{ + 'name': 'Account Reconciliation Reference', + 'version': '17.0.1.0.2', + 'category': 'Accounting/Accounting', + 'summary': 'Show Reference on reconciliation kanban/list and add to search', + 'description': """ +Show Reference on reconciliation UI +- Adds 'ref' on bank reconciliation kanban cards (account.bank.statement.line) +- Shows 'ref' column in bank reconciliation list view +- Adds 'ref' field in bank reconciliation search +- Also shows 'ref' in Journal Items Reconcile list +- Shows 'ref' on Manual Operations panel and persists it on Validate +""", + 'author': 'Suherdy Yacob', + 'website': 'https://example.com', + 'license': 'LGPL-3', + 'depends': ['account_accountant'], + 'data': [ + 'views/account_reconcile_views.xml', + 'views/bank_rec_widget_views.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'account_reconcile_reference/static/src/xml/bank_rec_form_inherit.xml', + ], + }, + 'installable': True, + 'auto_install': False, + 'application': False, } \ No newline at end of file diff --git a/__pycache__/__init__.cpython-310.pyc b/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..883e8ecf034b71be2c441d5b7c49157f935a4598 GIT binary patch literal 226 zcmYjLF$%&!5WI^bA_Ve{G&xe)h~xz#SO_-9dAlKj+-E%elF-z83S3giXa2GbRuqJK^L_N&(45g~EzOYoZpw83KkhlCp5fGJoWyd&>GXUhHGS<@Q2OZGz iR@)(WH3sw+mDa6q2d#^KnzsjzF?M)dQpF`kmV5z4;XF?O literal 0 HcmV?d00001 diff --git a/models/__init__.py b/models/__init__.py index 3e9d119..72761ca 100644 --- a/models/__init__.py +++ b/models/__init__.py @@ -1,2 +1,2 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8 -*- from . import bank_rec_widget \ No newline at end of file diff --git a/models/__pycache__/__init__.cpython-310.pyc b/models/__pycache__/__init__.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..86b11ce770f2a14d3b293b88f4bb25b53c54593d GIT binary patch literal 242 zcmYjLv5EpQ5KY!A4ng!cw%H)U*@)QLiC||FVrIMzZZeW&k^Q9mrERVJg{y9Il@I34 z%wrz&Xf~S)#(p)nU)-N%c}K;|jw>ygK!EIomuD#jR3}kSUXtZnj`NENHyzRHhl6j- zhq@X?Eao2(Ke+wVuU9R3RH<(_S?lILjGr48`wq7yWh!YF@()E(LLUGC literal 0 HcmV?d00001 diff --git a/models/__pycache__/bank_rec_widget.cpython-310.pyc b/models/__pycache__/bank_rec_widget.cpython-310.pyc new file mode 100644 index 0000000000000000000000000000000000000000..472029db222f0d939364a1c56d91e459ff434042 GIT binary patch literal 1646 zcmai!&x;#36vw5Ru{|-n?ItY=lx-1#LVSo#PJt3iNJt8$NkbAE@I}bd^IFb~m{RfsQJKo$6O{vx;Dag2svfa4^ZJZGmdt`!J?i{^U+hf20 zrUT|J(}DS!J@L#MHs4t20JYyydJzP!fC=m;ZD3c*2VUXQu9|~dXye(j_IgsGXVUjD;<_h7{!b=w?C~UdC#n%V1 zZJXCeZMOcEca7v!jh|r=1iL;V9F`|bNn{g1tbipJ(sk(;7$zMc$A08sQ3;7uwQPOD z=;aJmCE7dRDoWvjoy@?rv&JLFveFWv{bfxvFkRQ6P#!8|w*?&wQ=6mz0oL{KvK|jg zhd(|N58J!;9Nk~vx;7kD1IHlh*u!NJf@^JD%ALECtUA8IQiunaux=_0T*~YPjaN9A zmGGYPmO*zlSzgECEA0L=9Li2f4``S6X^H*xn|}bXDS}JgK`)k^8&L!2vClbj*C2>I z?s5JGD|53`VzD9RI=E|>AB_7OS0q%`r8}uE+>JD}jwOUT*nJAHBn2(AFR!_@`gBml mA{B*8Kib%NlK$@P&N{AEs2!3}Ebpxy`#yo{6P - - - - -
-
- -
-
-
- - -
-
-
-
- - - - - false - -
+ + + + + +
+
+ +
+
+
+ + +
+
+
+
+ + + + + false + +
\ No newline at end of file diff --git a/views/account_reconcile_views.xml b/views/account_reconcile_views.xml index 26e4d24..223318f 100644 --- a/views/account_reconcile_views.xml +++ b/views/account_reconcile_views.xml @@ -1,16 +1,16 @@ - - - - - account.move.line.tree.reconcile.inherit.ref.visible - account.move.line - - - - show - 0 - - - - + + + + + account.move.line.tree.reconcile.inherit.ref.visible + account.move.line + + + + show + 0 + + + + \ No newline at end of file diff --git a/views/bank_rec_widget_views.xml b/views/bank_rec_widget_views.xml index ac95bbe..08e9caf 100644 --- a/views/bank_rec_widget_views.xml +++ b/views/bank_rec_widget_views.xml @@ -1,42 +1,42 @@ - - - - - - account.bank.statement.line.kanban.inherit.ref - account.bank.statement.line - - - -
- -
-
-
-
- - - - account.bank.statement.line.tree.inherit.ref.visible - account.bank.statement.line - - - - show - - - - - - - account.bank.statement.line.search.inherit.add.ref - account.bank.statement.line - - - - - - - -
+ + + + + + account.bank.statement.line.kanban.inherit.ref + account.bank.statement.line + + + +
+ +
+
+
+
+ + + + account.bank.statement.line.tree.inherit.ref.visible + account.bank.statement.line + + + + show + + + + + + + account.bank.statement.line.search.inherit.add.ref + account.bank.statement.line + + + + + + + +
\ No newline at end of file