Document: fix behavior of dir.dctx lines, when dir is removed.

bzr revid: p_christ@hol.gr-20101012104120-n53iyh31z3zry6x9
This commit is contained in:
P. Christeas 2010-10-12 13:41:20 +03:00
parent 39aa2bd391
commit 0bdc45e068
1 changed files with 1 additions and 1 deletions

View File

@ -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"),