Overview
When a purchase order is in a foreign currency, Odoo's standard 'Create Bill' action silently applies the system exchange rate of the day, which rarely matches the rate the vendor actually invoiced. This module intercepts bill creation for foreign or mixed-currency purchase orders and opens a wizard where the buyer chooses the bill currency, the invoice date, and the precise currency rate to apply per currency. The resulting vendor bills are then generated and grouped using the rate the user confirmed, keeping payables aligned with the real amounts owed.
Key Features
- Detects foreign-currency and mixed-currency purchase orders and routes them through a dedicated bill-creation wizard instead of the default flow.
- Lets the user pick the bill currency and the invoice date before any vendor bill is created.
- Captures a precise invoice currency rate, pre-filled from the purchase order's own rate, and applies it to every bill line.
- Provides an editable per-currency rate table so each currency in the selection gets its own confirmed conversion rate.
- Recomputes rates automatically when the chosen bill currency changes, averaging across orders that share a currency.
- Generates vendor bills from invoiceable lines only, carrying over quantities, discounts, taxes and analytic distribution at the chosen rate.
- Groups the created bills by company, vendor and currency, consolidating origins and references into a single bill where possible.
- Falls back to Odoo's standard bill creation for same-company-currency orders so normal purchasing is untouched.