| __pycache__ | ||
| data | ||
| doc | ||
| models | ||
| security | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| .gitignore | ||
| README.md | ||
Vendor Batch Payment Merge
This Odoo addon enhances the batch payment functionality to allow direct creation of payment lines within the batch payment form, rather than selecting existing payments. It also adds an expense account field to payment lines that will be used in journal entries instead of the default payable/receivable account.
Features
- Direct Payment Line Creation: Create payment lines directly within the batch payment form without having to create individual payments first.
- Expense Account Field: Add an expense account to each payment line that will be used in the journal entry instead of the default payable/receivable account.
- Automatic Payment Generation: Generate actual payments from the direct payment lines with a single click.
- Support for Both Inbound and Outbound Payments: Works with both customer and vendor batch payments.
- Smart Partner Filtering: Automatically shows appropriate partners based on batch type:
- For vendor payments (outbound): Shows partners with supplier_rank > 0
- For customer payments (inbound): Shows partners with customer_rank > 0
Installation
- Copy the
vendor_batch_payment_mergefolder to your Odoo addons directory. - Update the Apps list in Odoo.
- Install the "Vendor Batch Payment Merge" addon.
Usage
For Vendor Payments (Outbound):
- Go to Accounting > Vendors > Batch Payments.
- Create a new batch payment or open an existing one.
- In the "Direct Payment Lines" tab, add your payment lines with vendor, amount, and expense account.
- Click "Generate Payments" to create the actual payments and add them to the batch.
- Validate the batch as usual.
For Customer Payments (Inbound):
- Go to Accounting > Customers > Batch Payments.
- Create a new batch payment or open an existing one.
- In the "Direct Payment Lines" tab, add your payment lines with customer, amount, and income account.
- Click "Generate Payments" to create the actual payments and add them to the batch.
- Validate the batch as usual.
How It Works
- When you create a batch payment, you can now add direct payment lines in a new tab.
- Each payment line can specify an expense/income account that will be used in the journal entry.
- When you click "Generate Payments", the addon creates actual payment records and adds them to the batch.
- The journal entries for these payments will use the specified expense/income account instead of the default payable/receivable account.
Documentation
- User Guide: Detailed instructions for end users
- Technical Guide: Implementation details for developers
Configuration
No additional configuration is required. The addon works out of the box with the standard Odoo accounting setup.
Dependencies
- account
- account_batch_payment
Demo Data
The addon includes demo data that can be loaded to showcase its functionality:
- Demo vendors and customers
- Demo expense and income accounts
Tests
The addon includes comprehensive tests to ensure proper functionality:
- Test payment generation for both inbound and outbound payments
- Test journal entry creation with expense accounts
- Test payment method availability
Recent Fixes
- Fixed partner field constraint issues
- Removed incorrect partner property references
- Improved error handling for missing partners
- Restored smart partner filtering based on batch type
- Fixed payment method line search to properly find direct batch payment methods
- Added automatic creation of payment method lines when they don't exist
- Fixed domain context for proper partner filtering in payment lines
License
LGPL-3
Author
[Your Name/Company]
Support
For issues or questions about this addon, please contact your Odoo administrator or the addon developer.