addons-cm/purchase_rappel
GitHub Copilot fbd43bb459
Some checks failed
CI / lint (pull_request) Successful in 33s
CI / test (pull_request) Failing after 9m29s
CI / review (pull_request) Has been skipped
[REF] all: pass pre-commit on the whole repo
Needed for the lint job of the CI to go green. Mostly automatic hook
fixes (black, isort, prettier, pyupgrade, autoflake, whitespace). By hand:

- flake8: two unused imports, an ambiguous variable name `l`.
- pylint-odoo mandatory: manifest keys equal to their default value
  (installable, application, data, external_dependencies).
- end-of-file-fixer skips *.patch too, like trailing-whitespace: the
  upstream patches stay as git format-patch wrote them.

No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 14:34:58 +02:00
..
i18n Ecocentral/ecocentral#172: migrate purchase_rappel to 18.0 2026-06-23 14:30:03 +02:00
models [REF] all: pass pre-commit on the whole repo 2026-10-04 14:34:58 +02:00
readme Ecocentral/ecocentral#172: migrate purchase_rappel to 18.0 2026-06-23 14:30:03 +02:00
security Ecocentral/ecocentral#172: migrate purchase_rappel to 18.0 2026-06-23 14:30:03 +02:00
tests [REF] all: pass pre-commit on the whole repo 2026-10-04 14:34:58 +02:00
views Ecocentral/ecocentral#172: migrate purchase_rappel to 18.0 2026-06-23 14:30:03 +02:00
wizard [REF] all: pass pre-commit on the whole repo 2026-10-04 14:34:58 +02:00
__init__.py Ecocentral/ecocentral#172: migrate purchase_rappel to 18.0 2026-06-23 14:30:03 +02:00
__manifest__.py [REF] all: pass pre-commit on the whole repo 2026-10-04 14:34:58 +02:00
README.md Ecocentral/ecocentral#172: migrate purchase_rappel to 18.0 2026-06-23 14:30:03 +02:00

Purchase Rappel Commission

This module allows managing rappel commission invoices for vendors.

Features

  • Configure a rappel commission rate per vendor.
  • Automatically mark vendor bills as "pending commission".
  • Generate customer (sale) invoices from selected vendor bills via a wizard.
  • Group invoices by vendor and compute commission amounts based on the taxable base.

Configuration

Go to Purchase > Configuration > Settings > Invoicing and set:

  • Rappel Journal: Sales journal where rappel commission invoices will be posted.
  • Commission Product: Product used as invoice line in rappel commission invoices (should have an income account and taxes configured).

Open a vendor contact and go to the Sales & Purchases tab:

  • Enable Rappel Commission.
  • Set the Commission Rate (%) (e.g., 5.00).

Usage

When a vendor bill is created for a partner with rappel enabled, the bill is automatically marked as Pending Commission. This flag is visible in the vendor bill list and form views.

To generate rappel invoices:

  1. Go to Invoicing > Vendors > Bills.
  2. Select one or more posted vendor bills with pending commission.
  3. Click Action > Create Rappel Commission Invoice.
  4. In the wizard, confirm the Invoice Date, Journal, and Product.
  5. Click Create Rappel Invoice(s).

The system will create one sale invoice per vendor, with one line per original bill. The commission amount is computed as:

taxable_base × commission_rate / 100

The original vendor bills are automatically unmarked as pending.