issue #18950, issue #24669 - do not try to save when opening in view mode
Merge pull request #507 from gilmoskowitz/i18950_i24669_salesOrderViewModeError

issue #18950, issue #24669 - do not try to save when opening in view mode