Báo cáo kiểm tra tính không thể thay đổi của dữ liệu -

Tax authorities in some countries require companies to prove their posted accounting entries are inalterable, meaning that once an entry has been posted, it can no longer be changed.

To do so, Odoo can use the SHA-256 algorithm to create a unique fingerprint for each posted entry. This fingerprint is called a hash. The hash is generated by taking an entry's essential data (the values of the name, date, journal_id, company_id, debit, credit, account_id, and partner_id fields), concatenating it, and inputting it to the SHA-256 hash function, which then outputs a fixed size (256-bit) string of characters. The hash function is deterministic (the same input always creates the same output): any minor modification to the original data would completely change the resulting hash. Consequently, the SHA-256 algorithm is often used, among others, for data integrity verification purposes.

In addition, the previous entry's hash is always added to the next entry to form a hash chain. This is used to ensure a new entry is not added afterward between two posted entries, as doing so would break the hash chain.

Ghi chú

Các mã băm được tạo bởi thuật toán SHA-256 về mặt lý thuyết không phải là duy nhất, vì có một số lượng hữu hạn các giá trị có thể. Tuy nhiên, con số này là cực kỳ cao: 2²⁵⁶, lớn hơn rất nhiều so với số lượng nguyên tử trong vũ trụ đã biết. Đây là lý do tại sao các mã băm được coi là duy nhất trong thực tế.

Lock posted entries with hash

To start using the hashing function, go to Accounting ‣ Configuration > Journals. Open the journal for which you want to activate the feature, go to the Advanced Settings tab, and enable Lock Posted Entries with Hash.

Cảnh báo

Once you post an entry on a locked journal, you cannot disable the feature anymore, nor edit any posted entry.

Tải xuống báo cáo

Để tải xuống báo cáo kiểm tra tính không thể thay đổi dữ liệu, vào Accounting ‣ Configuration ‣ Settings ‣ Reporting và nhấp vào Download the Data Inalterability Check Report.

The report's first section is an overview of all your journals and their configuration. Under the inalterability check column, you can see whether or not a journal's posted entries are locked with a hash (V) or not (X). The coverage column tells you when a journal's posted entries started being locked.

Báo cáo cấu hình cho hai sổ nhật ký

The second section gives you the result of the data consistency check for each hashed journal. You can view the first hashed entry and its corresponding hash and the last hashed entry and its corresponding hash.

Báo cáo kiểm tra tính nhất quán dữ liệu cho một sổ nhật ký