Odoo Help

3 Answers

Ermin Trevisan

--Ermin Trevisan--
| 6 5 7
Walchwil, Switzerland
--Ermin Trevisan--

Ermin Trevisan
9/6/18, 2:57 AM

Before you start customizing, you should know what this is all about and what your accountant tries to explain to you.

This issue is about VAT and the system how tax is calculated, applied and tax returns are created and filed. All EU countries have the same VAT rules based on the EU Directives on VAT, but also most other countries with a VAT system have more or less the same rules.

The rule relevant here is about the time, when a tax position has to be posted. The relevant time for a taxable event in the case of a delivery of goods or services for example is usually the time of the delivery. This time may be different from the time of the invoice and in some cases, these two may not fall into the same tax period. The technical term for this is "time of chargeable event".


Delivery of goods: 31 August 2018
Date of Invoice: 1 September 2018
VAT Tax Period: monthly

In this case the the tax on the invoice has to be filed (and therefore is due) in the tax return for the month August and not in September.

How to handle this in Odoo?

It must be ensured that the posting (accounting) date of the journal entries of the invoice is the time of the delivery in our example, means a different accounting date (31 August) from the invoice date (1 Sept). In Odoo 8.0 you can do that in the invoice form on the tab "Other info" and there you can force the proper accounting (=tax) period.

From Odoo 9.0 on there is no accounting period anymore, so you have to set a different accounting date than the invoice date. In the community editions I can remember that this field "accounting date" was available also on the tab "Other info", but meanwhile it has disappeared. The field "date" in the model account.invoice (with the description "accounting date") was made read-only and is not displayed anymore in the form view in the "Other info" tab. Maybe somebody knows when and why this regression happened.

According to my knowledge and experience, but I'm not a developer, you should create a little module which makes this field editable and displays it again in the "Other info" tab. By default, the accounting date should be the same as the invoice date. By this I assume that the journal entries of the invoice posting are still posted on the date of the field "date" and not on the date of the field "date_invoice" of the account.invoice model.

This is the correct way to ensure that your tax accounting and filing is handled properly.

And if you are a nice guy and want to give something back to the community, please make a pull request for such a module on the OCA github repository.

9/7/18, 5:08 AM

This is such an exhaustive answer. Thank you so much. Actually I am a developer somewhat but I was missing the theory behind this part of the accounting. I will post again when I have a concrete solution :)

9/7/18, 5:30 AM

Actually the field 'date' is NOT readonly in a draft state. Probably that's correct, you should set the accounting date before validating. So I just added the field to the Other info Tab. Well I'm a nice guy but not too nice so I would post the code here ;)

<record id="psfarm_account_invoice_form" model="ir.ui.view">

<field name="name">psfarm.account.invoice_form</field>

<field name="model">account.invoice</field>

<field name="inherit_id" ref="account.invoice_form"/>

<field name="arch" type="xml">

<xpath expr="//page[@name='other_info']/group/group[2]" position="inside">

<field name="date"/>




Piotr Cierkosz
9/5/18, 12:03 PM

OK, so you have "Confirmation Date" in Sales Orders (field: confirmation_date). You can create a related field in the Accounting. Once you done it you can make it visible on the Invoice Form and on the Invoice Print (QWEB). 

1 Comment
Ermin Trevisan
9/6/18, 2:30 AM

This answer does not solve the problem laying behind.

Ask a Question
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now