allow add action to set an error instead of just returning false, only works with SalesOrder

Signed-off-by: Chris Boertien <chris@aktionlab.com>