You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
687 B

  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