odoo/enterprise#74945
Created by fw-bot
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- ci/l10n: (runtime 1s)
- label
- odoo-dev:18.0-17.0-de-audit-trail-document-wan-tuI--fw
- head
- 055c6d1b9afcc824901d6465c0041ef050300415
- merged
- 1 year ago by Accounting, Wala Gauthier (gawa)
| odoo/odoo | odoo/enterprise | |
|---|---|---|
| 17.0 | #176360 | #68235 |
| saas-17.2 | #189182 | #74906 |
| saas-17.4 | #189197 | #74914 |
| 18.0 | #189247 | #74945 |
| saas-18.2 | ||
| saas-18.3 | ||
| saas-18.4 | ||
| 19.0 | ||
| master | #189994 | #75333 |
[FW][FIX] document: audit trail with document versionning
Normally, when using document versioning, the attachments linked to a record are re-attached to the document when changing the version. This is not compatible with the requirement for audit trail in Germany (GoBD) as we want to be sure that the document won't be deleted. This is ensure by making sure all the attachments stay attached, and can't be deleted.
To reproduce:
* Install Accounting and Documents, as well as l10n_de
* Select/configure a German company
* Create new document folder settings for Customer Invoices
* Create a new invoice
* Send & Print
* Delete it from the attachments (it should "detach it")
* On the document, change the main history version, or on the invoice, navigate through the attachments
Forward-Port-Of: #68235