Closed lmignon closed 5 years ago
Example of non-valid error?
@pedrobaeza An error is raised for the 2 samples provided....
default='section_1'
default=lambda m m._default_my_field()
``
Uhm, weird I haven't seen that problem on OCA Travis...
@moylop260 any clue?
@blaggacao Could you check these valid cases of use for your new check, please?
default='section_1'
this is not intended to raise an error.
default=lambda m m._default_my_field()
this is neither... Hm..
Shouldn't it be: default=lambda m: m._default_my_field()
, though?
The most canonical way would be:
default=_default_my_field
(passed as symbol)
@blaggacao
default=_default_my_field
is not overiddable since you pass as symbol... IMO it's not the right way.
True it is... :wink:
Oh, I see. It was release, I'll take care of a fix asap... :fearful:
yes it has been released :nauseated_face:
So I will revert it and release the revert In order to avoid making false reds for OCA projects
After fixes we can release a new version using all case of use from unittests
This new check breaks the code if the provided value for a default is not a method or a lambda.