On 05 Dec 15:41, Christophe wrote: > Hello, > > Is there a way to remove constrainte put by a "required" clause ? > > In details, I have a field that have a constrainte put by the "required" > clause and i want to remove this constainte by overload of the class. it-is > possible ?
There is method in TableHandler to manage that [1] but it is intended to be used for migration because on the next update Tryton will try first to re-add the constraint. Indeed, it is probably a bad idea to remove a required from a parent module because if it is set it is because it is strictly required for the module to work properly (but maybe the module is buggy and it is not strictly required if so you should ask the author to fix his module). [1] http://hg.tryton.org/trytond/file/569dd5d4d9e1/trytond/backend/table.py#l167 -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpBjCTQLyzqL.pgp
Description: PGP signature
