Step 2 of 6 in Customer invoiceAutomation, no AI
Code checks the draft invoice
- Starts when
A draft made by step 1, or one corrected by the accountant
- Inputs
Input Comes from Draft invoice Odoo customer invoice of step 1 Lines as ordered and as delivered Odoo sales order and Odoo delivery order Number, value and currency of the customs declaration, for a dealer abroad Customs file of Export shipment Whether the VAT number is valid today VIES, asked by our module on the day of the invoice Resale exemption certificate with its dates and states Odoo dealer record The rate of the day Odoo currency rate of Daily exchange rates - Done by
Invoice checks · Automation, no AI
- What changes
Record What changes Odoo customer invoice, draft The result of each check, the VIES answer with its time, and the mark clean or waiting Agent action log One line per check result - Check
- Compared with
- Order lines, or the price the dealer accepted for a repair; delivered lines and serial numbers; the customs declaration; VIES or the certificate; the rate of the day; the payment terms; the invoice's own lines, tax and total
- Tolerance
- Quantity equals delivered, price, discount and currency equal the order, all exact; serial numbers the delivered ones; value and currency equal to the declaration, to the cent, with its number on the invoice; VAT number valid in VIES today, or the certificate in date for the state of delivery; no tax line on an invoice of the US company; a rate of today in Odoo; due date by the terms; lines add up to the total to the cent
- On a difference
- The draft goes to the accountant's exception queue with each difference in plain words. When VIES does not answer, the draft waits and code asks again every hour; no answer never counts as valid.
- Decision
Any difference?
- Accountable
Accountant
- Systems
- Odoo 19 Community
- VIES, the EU's check of VAT numbers
- Google Drive, signed documents and photos
- Rollout stage
6 · Month-end close and approvals