[Erp5-dev] Accessing the object from external validator of the workflow action form

Jean-Paul Smets jp at nexedi.com
Wed Jun 20 11:24:45 CEST 2007


Jacek Medrzycki a écrit :
> I'm launching the field's External Validator from the action form of a
> workflow transition.
>
> Is it possible to access - from the External Validator - the object
> which is subject to the workflow transition?
>
Probably, you are not using the right tool. If you need to validate data
during or before a workflow transition, you should use contraints, not
fields or field validators.

Field validators are only there to help users enter information. Field
validators should be used to validate user entries. They should not be
used to validate document data.

Regards,

JPS.


> Jacek
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://erp5.org/mailman/listinfo/erp5-dev




More information about the Erp5-dev mailing list