crea mandatos SEPA desde pedidos del TPV

This commit is contained in:
GitHub Copilot 2026-06-26 19:41:54 +02:00
parent a754df3914
commit 62e0e8a92c
7 changed files with 262 additions and 15 deletions

View file

@ -6,8 +6,8 @@ Combines OCB (`ocb/`), inherited OCA addons, and our own custom addons.
## ⚠️ Critical rules (non-negotiable)
- **DO NOT modify** the OCB core (`ocb/`) nor these original OCA addons (reference/inheritance only):
`product_main_seller`, `product_origin`, `account_invoice_triple_discount`,
`product_get_price_helper`, `product_price_category`, `purchase_triple_discount`.
`product_main_seller`, `account_invoice_triple_discount`, `product_get_price_helper`,
`product_price_category`, `purchase_triple_discount`, `base_bank_from_iban`, `l10n_es_partner`.
All changes go in our own custom addons.
- **Do NOT use `_()` in field definitions** (triggers import-time warnings). Only in methods/executable code.
- **Business logic ALWAYS on `product.product`** (variants), never on `product.template` (use `related` there).
@ -45,12 +45,33 @@ pre-commit run --all-files
## Custom addons
Pricing & products:
- `product_sale_price_from_pricelist` — auto-computes sale price from last purchase price + pricelist.
Requires taxes on the product and `last_purchase_price_compute_type != "manual_update"`.
Also applies supplier discounts from `supplierinfo`.
- `product_pricelist_total_margin` — total margin computed additively (Markup or Commercial Margin), with global limits.
- `product_price_category_supplier` — price categories per supplier.
- `product_origin_char` — free-text origin field per product (template-based).
- `account_invoice_triple_discount_readonly` — fix for triple-discount accumulation bug (always use it).
Sales & website:
- `website_sale_aplicoop` — Eskaera: collaborative purchasing for consumer co-ops (group orders,
per-member carts, cutoff/pickup dates, lazy loading, multi-language).
- `account_invoice_triple_discount_readonly` — fix for triple-discount accumulation bug (always use it).
- `product_price_category_supplier` — price categories per supplier.
- `portal_event_registration` — portal users view their event registrations + upload attachments to chatter.
Membership:
- `membership_monthly_invoicing` — auto-creates a monthly membership invoice per active member (cron-driven).
- `membership_expiry_reminder` — automated renewal-reminder emails near expiry, with online renew link.
Logistics & accounting:
- `stock_picking_batch_custom` — batch picking extras: extra detailed-op columns, ordering by
category/product/partner, and a full-screen operator (Basket Assembly) view.
- `account_banking_mandate_batch` — contextual action to bulk-create/validate SEPA mandates for selected partners.
- `l10n_es_edi_tbai_reagyp_recibidas` — TicketBAI fix: REAGYP vendor-bill regime key 19 → 02.
## Documentation