Daily updates from Odoo
Wednesday, March 6, 2019
2 changes
New functionality added to Odoo
Accounting settings now include a tax lock date that prevents changes to tax-related amounts and tax fields on journal entry lines before that date. This helps protect finalized tax reporting periods while still allowing non-tax details on older entries to be updated.
Original PR description
Purpose:
Journal entry can be changed the way we want while the lock date is before then entry date..
Entry : Draft -> Validated (or posted)
Specs:
add a date field in the accounting settings: tax lock date
implement a constraint ensuring that no one can modify the information related to tax on account.move.line prior to this lock date. That means the debit, credit, tax_ids, tax_line_id fields. Other fields can be modified. This also means we cannot create/delete an account.move.line with tax information prior to this lock date.
Task 1914762UK tax reports now include a Connect / Send option that lets users authenticate with HMRC and submit VAT return information directly from Odoo. The flow retrieves filing obligations, matches them to the report period where possible, and guides the user through submission in a wizard.
Original PR description
We add a button to the existing tax report "Connect / Send" to HMRC in order to send the tax information to the government. The first time you connect, you have to log in into the hmrc site first. For that, we needed a proxy on our site to recuperate its response (as they support only a fixed redirect uri). The proxy will check if a valid db uuid is given. The proxy itself generates a token and you get a token back from hmrc. Every 4 hours, the token needs to be refreshed. We use two endpoints of the API: retrieving the obligations (when and for which period vat returns (still) need to be filled in) and submitting the vat return itself. When you click the send button after a successfull login, a wizard is loaded where if possible the obligation is selected which conforms with the dates you chose in the report. There you can send it.