summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>2011-04-27 09:46:17 +0200
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>2011-04-27 09:46:17 +0200
commitcab0d4cb2ffd457562eaecb40b80b997dc44eef5 (patch)
tree912b435a01c468b8b2434c859c371c71f122ae86
parent6e349a3a5a53644a163c2fd001845eb522ba8418 (diff)
parentad590ddc86b73d31265f5ea6913cee74f96a755a (diff)
[MERGE] lp: 746544
bzr revid: qdp-launchpad@openerp.com-20110427074617-fsqoe9it9l1bnzta
-rw-r--r--addons/account/account_analytic_line.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/account_analytic_line.py b/addons/account/account_analytic_line.py
index a93dc70b2fb..08123c8f460 100644
--- a/addons/account/account_analytic_line.py
+++ b/addons/account/account_analytic_line.py
@@ -32,7 +32,7 @@ class account_analytic_line(osv.osv):
'product_uom_id': fields.many2one('product.uom', 'UoM'),
'product_id': fields.many2one('product.product', 'Product'),
'general_account_id': fields.many2one('account.account', 'General Account', required=True, ondelete='restrict'),
- 'move_id': fields.many2one('account.move.line', 'Move Line', ondelete='restrict', select=True),
+ 'move_id': fields.many2one('account.move.line', 'Move Line', ondelete='cascade', select=True),
'journal_id': fields.many2one('account.analytic.journal', 'Analytic Journal', required=True, ondelete='restrict', select=True),
'code': fields.char('Code', size=8),
'ref': fields.char('Ref.', size=64),