Estonia VAT Return KMD and KMD INF XML for e-MTA
by Modvanta https://modvantaapps.tech/odoo-apps/ee-kmd/$ 39.88

What it does
Fills the Estonian VAT return KMD from the tax grids of the core Estonian localisation and builds the KMD INF annex, part A for sales and part B for purchases, invoice by invoice.
The result is an XML file for the Add data from file button in e-MTA, checked against the vatdeclaration.xsd published by the Tax and Customs Board.
Who it is for
- Estonian VAT payers on Odoo Community
- Accountants who file KMD and KMD INF for a company on Odoo
Key features
The KMD form from your tax grids
Lines 1 to 11 are read from the grids Odoo posts on your journal items, including rates of 24, 22, 20, 13, 9 and 5 percent. The VAT payable or overpaid is shown for review. Every amount stays editable until you mark the return as submitted.

The KMD form
KMD INF part A, sales
One line per rate on each invoice, with the invoice total without VAT, the taxable supply in the period and the special codes 01, 02 and 03. Credit invoices are negative.

Part A lines, editable
KMD INF part B, purchases
Bills with deductible input VAT, with the total including VAT, the input VAT of the period and the special codes 11 and 12.

Part B lines, editable
The 1000 euro limit, the way the instructions describe it
The limit runs per partner, separately for sales and purchases and separately for invoices and credit invoices. If one total reaches it, all invoices of that partner in the period are declared. Set the limit to 0 to declare everything. Natural persons and non-residents without an Estonian register code stay out, as the instructions say.
Checks from the published rules
Rules such as INFA5, INFA8 to INFA12, INFA19 to INFA21, INFB5, INFB7 and INFB15, plus the version and rate rules per period, run before the file is written.

Check results on the return
How it works
- Open Accounting, Estonia VAT Return, and create a return for the year and month.
- Press Prepare From Accounting.
- Review the form and the lines. Edit what needs it.
- Press Generate XML, upload the file in e-MTA and mark the return as submitted.

History of what you generated, with the result of each run
What was tested, and what was not
| Tested | Automated tests on a clean database, with and without demo data, using the real Estonian chart of accounts and taxes: form amounts, limit, rates, special codes, credit notes, multi-company, record rules, broken lines. |
| Checked with an official file | The official vatdeclaration_example.xml validates with the bundled XSD. |
| Not tested | A real upload to e-MTA and rules that need the data of the tax board, such as register code lookups. |
Not included
- Cash accounting VAT (columns 8 of part A and 7 of part B).
- VAT groups.
- CSV format.
- The machine-to-machine interface and X-tee.
- The data-based VAT return from April 2027.
Settings
- Register code: Company Registry on the company and on partners.
- Special codes on taxes: the KMD INF Code field of the core localisation.
- Partner limit and file content: on each return. The file can hold KMD and KMD INF, KMD only or KMD INF only.
FAQ
Which periods does it cover?
From January 2024: version KMD4 for 2024, KMD5 for January to June 2025, KMD6 from July 2025, as the rules require.
What about the data-based VAT return from 1 April 2027?
The Tax and Customs Board has published that format, but this module does not produce it yet. It builds the current KMD and KMD INF XML.
Does it submit to e-MTA?
No. You upload the file yourself.
Is the file accepted by e-MTA?
It is valid against the published XSD and passes the rules listed above. It has not been uploaded to e-MTA by us, because that needs a real taxpayer login.
Compatibility
Odoo 19 Community and Enterprise. It uses the standard Accounting / Invoicing data and needs no Enterprise app.
Support
Questions or a problem with a file? Write to modvantaapps@gmail.com.
Buy Now - $40
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Discuss (mail)
• Invoicing (account) |
| Lines of code | 721 |
| Technical Name |
mdv_ee_kmd |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/ee-kmd/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module