Document: fix behavior of dir.dctx lines, when dir is removed.
bzr revid: p_christ@hol.gr-20101012104120-n53iyh31z3zry6x9
This commit is contained in:
parent
39aa2bd391
commit
0bdc45e068
|
@ -293,7 +293,7 @@ class document_directory_dctx(osv.osv):
|
|||
_name = 'document.directory.dctx'
|
||||
_description = 'Directory Dynamic Context'
|
||||
_columns = {
|
||||
'dir_id': fields.many2one('document.directory', 'Directory', required=True),
|
||||
'dir_id': fields.many2one('document.directory', 'Directory', required=True, ondelete="cascade"),
|
||||
'field': fields.char('Field', size=20, required=True, select=1, help="The name of the field. Note that the prefix \"dctx_\" will be prepended to what is typed here."),
|
||||
'expr': fields.char('Expression', size=64, required=True, help="A python expression used to evaluate the field.\n" + \
|
||||
"You can use 'dir_id' for current dir, 'res_id', 'res_model' as a reference to the current record, in dynamic folders"),
|
||||
|
|
Loading…
Reference in New Issue