รายงานการตรวจสอบการเปลี่ยนแปลงข้อมูลไม่ได้¶
Tax authorities in some countries require companies to prove their posted accounting entries are unaltered, meaning that once an entry has been secured, it can no longer be changed.
เพื่อดำเนินการดังกล่าว Odoo จะสร้างลายนิ้วมือเฉพาะสำหรับแต่ละรายการที่ได้รับการรักษาความปลอดภัยด้วย อัลกอริทึม SHA-256 ลายนิ้วมือนี้เรียกว่าแฮช แฮชถูกสร้างขึ้นโดยนำข้อมูลสำคัญของรายการ (ค่าของฟิลด์ name
, date
, journal_id
, company_id
, debit
, credit
, account_id
และ partner_id
) มาต่อกัน และป้อนเข้าในฟังก์ชันแฮช SHA-256 ซึ่งจะส่งออกสตริงอักขระที่มีขนาดคงที่ (256 บิต) ฟังก์ชันแฮชเป็นแบบกำหนดได้ (อินพุตเดียวกันจะสร้างเอาต์พุตเดียวกันเสมอ): การปรับเปลี่ยนเล็กน้อยต่อข้อมูลเดิมจะเปลี่ยนแฮชที่เกิดขึ้นทั้งหมด ดังนั้น อัลกอริทึม SHA-256 จึงมักใช้เพื่อวัตถุประสงค์ในการตรวจสอบความสมบูรณ์ของข้อมูล เป็นต้น
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 secured entries, as doing so would break the hash chain.
Note
แฮชที่สร้างโดยอัลกอริทึม SHA-256 นั้นในทางทฤษฎีแล้วจะไม่ซ้ำกัน เนื่องจากมีค่าที่เป็นไปได้จำนวนจำกัด อย่างไรก็ตาม จำนวนนี้สูงเป็นพิเศษ: 2²⁵⁶ ซึ่งมากกว่าจำนวนอะตอมในจักรวาลที่เรารู้จักมาก นี่คือเหตุผลว่าทำไมแฮชจึงถือว่ามีเอกลักษณ์เฉพาะในทางปฏิบัติ
Inalterability features¶
Inalterability features can be enabled by activating the secure posted entries with hash option on any journal or using the secure entries wizard.
Two indicators are added to the journal entry's form view. They show whether the entry is secured or not.
A or (lock icon) next to the Posted state.
A Secured checkbox in the Other info tab.
A Not Secured filter is available on journal entries and journal items' list views. It can be used to find posted journal entries that are not secured yet.
The option to open the secure entries wizard is displayed in the Accounting menu.
Secure posted entries with hash¶
To activate the hashing function on a specific journal, go to Advanced Settings tab, and enable Secure Posted Entries with Hash. Journals for which the feature is activated are called "restricted".
. Open a sales, purchase, or miscellaneous journal, go to theTo compute the hash of an entry, Odoo retrieves the predecessor entries of the chain (i.e., the entries with the same sequence prefix) and hashes them in a continuous way from the last hashed entry to the new entry to hash.
Warning
Once you post an entry in a restricted journal, you cannot disable the feature anymore, nor edit any secured entry.
Secure entries wizard¶
You can also use the Secure Entries Wizard to secure all journal entries, in all journals, up to a specific date.
Note
The wizard operates independently of the journal settings and journal types.
To open it, activate the developer mode, go to , and click on Secure Entries. If the inalterability features are activated, it is also visible outside the debug mode.
To secure entries, select a date up to which all entries should be secured and press Secure Entries.
Warning
After securing the entries, you can no longer edit them.
Note
It can happen that entries that are past the selected date are secured. This is possible since the hash chain corresponds to the sequence prefix, ordered by sequence number.
ดาวน์โหลดรายงาน¶
หากต้องการดาวน์โหลดรายงานการตรวจสอบการเปลี่ยนแปลงข้อมูลไม่ได้ ให้ไปที่ ดาวน์โหลดรายงานการตรวจสอบการเปลี่ยนแปลงข้อมูลไม่ได้
และคลิกที่ส่วนแรกของรายงานเป็นภาพรวมของคำนำหน้าลำดับสมุดรายวันทั้งหมดที่มีรายการแฮช ในคอลัมน์ ถูกจำกัด คุณสามารถดูได้ว่าสมุดรายวันได้เปิดใช้งานตัวเลือก โพสต์รายการที่ปลอดภัยด้วยแฮช (V) หรือไม่ (X) คอลัมน์ ตรวจสอบ จะบอกคุณว่ารายการทั้งหมดถูกแฮชอย่างถูกต้องหรือไม่

The second section gives a more detailed result of the data consistency check for each hashed journal sequence prefix. You can view the first hashed entry and its corresponding hash, as well as the last hashed entry and its corresponding hash.
