oca-payment/CLAUDE.md
Ernad Husremovic 7f7e88ab3d Restructure: move packages from packages/ subdirectory to root
Flattened directory structure by moving payment packages from redundant
packages/ subdirectory to the root level of oca-payment repository.

Changes:
- Moved odoo-bringout-oca-payment-* from packages/ to root
- Updated CLAUDE.md to reflect new flat structure
- Removed redundant packages/ directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 09:10:09 +01:00

87 lines
2.3 KiB
Markdown

# OCA Payment Modules - Development Notes
## Source Information
**Upstream Repository:** https://github.com/OCA/bank-payment
**Branch:** 16.0
**Clone Date:** 2025-11-12
**License:** AGPL-3.0
## Package Structure
Each package contains a single Odoo module from OCA/bank-payment:
```
oca-payment/
├── odoo-bringout-oca-payment-payment_mode/
│ └── account_payment_mode/ # Odoo module
├── odoo-bringout-oca-payment-payment_partner/
│ └── account_payment_partner/ # Odoo module
├── odoo-bringout-oca-payment-payment_order/
│ └── account_payment_order/ # Odoo module
└── odoo-bringout-oca-payment-payment_order_grouped_output/
└── account_payment_order_grouped_output/ # Odoo module
```
## Module Dependencies
```
account_payment_mode (base)
account_payment_partner
account_payment_order
account_payment_order_grouped_output
```
## Deployment
### Local Development
```bash
# Sync to odoonix
~/src/bringout/0/scripts/odoonix_rsync.py account_payment_mode
~/src/bringout/0/scripts/odoonix_rsync.py account_payment_partner
~/src/bringout/0/scripts/odoonix_rsync.py account_payment_order
~/src/bringout/0/scripts/odoonix_rsync.py account_payment_order_grouped_output
```
### Production
```bash
# Install in order:
~/src/bringout/0/scripts/upgrade_production_nix_service.py \
--module account_payment_mode \
--module account_payment_partner \
--module account_payment_order \
--module account_payment_order_grouped_output \
--install
```
## Use Case
**Problem:** Merge multiple payments to same supplier into one payment order
**Solution:** Use `account_payment_order` to create payment orders that group multiple invoices
**Workflow:**
1. Go to: Accounting → Payments → Payment Orders
2. Create new payment order
3. Select move lines (invoices) from same supplier
4. Confirm → Creates grouped payment
5. Optional: Use grouped_output for consolidated accounting moves
## Upstream Updates
To update from OCA:
```bash
cd /tmp
git clone -b 16.0 https://github.com/OCA/bank-payment.git
# Compare and merge changes manually
```
## Author
**Developer:** Ernad Husremović (hernad@bring.out.ba)
**Company:** bring.out.doo Sarajevo, BiH
**Website:** https://www.bring.out.ba
**Date:** 2025-11-12