On 27 May 11:12, Sergi Almacellas Abellana wrote:
> El 27/05/14 10:51, Katsandres ha escrit:
> >Hi all,
> >
> >How can I set mandatory fields as "not mandatory";
> Just create a module and override the required property [1] of the field via
> the __setup__ method. Something like
> 
> 
> class YourModel:
>    __name__ = 'model.name'
> 
> 
>    @classmethod
>    def __setup__(cls):
>        super(YourModel, cls).__setup__()
>        cls.field_name.required = False

But it should be done very carefully because in Tryton we set field as
required only when it is strictly necessary to run properly.

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgprJ2AcqGccq.pgp
Description: PGP signature

Reply via email to