How elgafey/testg works
This Odoo add-on lets accounting users allocate a selected set of reconcilable journal items between the original account, an optional bank-and-cash account, and bank-fee expense. The main flow validates the selection, opens a wizard, creates and posts one balanced journal entry, then reconciles it with the selected items. Company settings provide a default fee account; the wizard also supports analytic cost-center allocation. The available excerpts show the entry point and wizard intent, but not all wizard implementation details or view bindings, so those links are documented rather than inferred from unsampled code.
Main entry points: bank_fees_wizard.py Allocation Wizard · account_move_line.py Selection Handler · bank_fees_reconcile_views.xml Reconcile View · res_config_settings.py Settings Field
Components 13
Selection & Entry
- Reconcile View
bank_fees_allocation/views/bank_fees_reconcile_views.xml - Selection Handler
bank_fees_allocation/models/account_move_line.py - Eligibility Checks
bank_fees_allocation/models/account_move_line.py
Fee Allocation
- Allocation Wizard View
bank_fees_allocation/wizard/bank_fees_wizard_views.xml - Allocation Wizard
bank_fees_allocation/wizard/bank_fees_wizard.py - Journal Entry
- Selected Journal Items
- Entry Cost Center View
bank_fees_allocation/views/bank_fees_move_views.xml
Company Configuration
- Company Fee Account
bank_fees_allocation/models/res_company.py - Settings Field
bank_fees_allocation/models/res_config_settings.py - Settings View
bank_fees_allocation/views/res_config_settings_views.xml
Other components
- Accounting User
- Odoo Accounting
Connections 11
- Accounting User → Reconcile View: selects items
- Reconcile View → Selection Handler: opens wizard
bank_fees_allocation/models/account_move_line.py - Selection Handler → Eligibility Checks: validates selection
bank_fees_allocation/models/account_move_line.py - Selection Handler → Allocation Wizard: opens wizard
bank_fees_allocation/models/account_move_line.py - Allocation Wizard → Selected Journal Items: reads selection
bank_fees_allocation/wizard/bank_fees_wizard.py - Allocation Wizard → Journal Entry: creates and posts
bank_fees_allocation/wizard/bank_fees_wizard.py - Allocation Wizard → Selected Journal Items: reconciles with
bank_fees_allocation/wizard/bank_fees_wizard.py - Allocation Wizard → Company Fee Account: uses default
- Settings View → Settings Field: edits setting
- Settings Field → Company Fee Account: updates related field
bank_fees_allocation/models/res_config_settings.py - Allocation Wizard → Odoo Accounting: posts and reconciles
bank_fees_allocation/wizard/bank_fees_wizard.py