您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

save_submit.txt 687 B

123456789101112131415161718
  1. .. _save_submit:
  2. Save-Submit-Cancel Pattern
  3. ==========================
  4. The framwork has an built-in pattern to "freeze" a record. This is typically useful in accounting type
  5. of applications where a transaction cannot be altered once a subsequent transaction has been made and a
  6. "posting" is completed.
  7. In the framework, a record has 3 stages as defined by the property "docstatus"
  8. * 0 - Saved
  9. * 1 - Submitted (frozen)
  10. * 2 - Cancelled (or deleted)
  11. After cancelling, you can also define an "Amend" permission. If the user is allowed to "Amend" a
  12. record, a new record is created against the cancelled record with a version number attached.
  13. For example: Invoice IN003 becaomes IN003-1