Hi, I am newbie on OpenERP ... and Python
For example in the "idea" module, I don't understand the syntax about "lambda"
In idea_idea class, why the code is :
_defaults = {
'state': lambda *a: 'draft',
}
rather than simply :
_defaults = {
'state': 'draft',
}
?
↧