Daily updates from Odoo
Thursday, June 4, 2026
3 changes · saas-19.3
Enhancements to existing features
This update streamlines the invoicing process by automatically reconciling invoices created from sale orders. Previously, this required manual steps; now, the system directly links invoices to the corresponding sale order, improving efficiency and accuracy. This change simplifies the accounting workflow and reduces the risk of errors.
Original PR description
This commit will allow to automatically reconcile the invoice create from the sale order by passing a context key that will be used in the create_invoices function. task-5502964 Forward-Port-Of: odoo/enterprise#108546
This update enhances how we track usage of our AI models by adding detailed labels to each request. This allows us to better understand which sources – like agents or web searches – are driving token consumption, leading to more accurate cost analysis and optimization of our AI investments. The changes improve our ability to monitor and manage AI resource utilization.
Original PR description
Tag each completion request with a human-readable label identifying what issued it (the agent, web search, AI field, AI server action, ...) so token usage can be attributed to a given source-model combination. Agent-driven requests are prefixed with "Agent:" to set them apart from feature calls. Example: ``` AI: [Agent: Ask AI] gemini-2.5-flash-lite request [0.68s] - Tokens: 115 in (0 cached)|5 out|0 reasoning AI: [Agent: Ask AI] gemini-3-flash-preview request [2.64s] - Tokens: 5295 in (4050 cached)|79 out|186 reasoning AI: [web search] gemini-3-flash-preview request [21.24s] - Tokens: 562 in (226 cached)|708 out|1343 reasoning AI: [Agent: Odoo Image Generation Agent] gemini-2.5-flash-image request [8.25s] - Tokens: 423 in (0 cached)|1324 out|0 reasoning ```
This update adjusts how global discounts are handled in invoices to meet the requirements of UBL (Universal Business Language) standards. Previously, discounts were represented as negative invoice lines, which is now changed to 'Allowances'. This ensures our invoices are correctly formatted for international trade and compliance.
Original PR description
Export global discounts as Allowances instead of negative invoice lines to comply with UBL specifications. task-5900496 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#268177 Forward-Port-Of: odoo/odoo#261029