← Back to team overview

openerp-community team mailing list archive

lp:~openerp-community/openobject-addons/fix-1109018-account_cashbox_line_many2one_cascade into lp:openobject-addons/7.0

 

Niels Huylebroeck has proposed merging lp:~openerp-community/openobject-addons/fix-1109018-account_cashbox_line_many2one_cascade into lp:openobject-addons/7.0.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1109018 in OpenERP Addons: "account/point_of_sale: removal of account.journal entry blocks on account.journal.cashbox.line"
  https://bugs.launchpad.net/openobject-addons/+bug/1109018

For more details, see:
https://code.launchpad.net/~openerp-community/openobject-addons/fix-1109018-account_cashbox_line_many2one_cascade/+merge/145432
-- 
https://code.launchpad.net/~openerp-community/openobject-addons/fix-1109018-account_cashbox_line_many2one_cascade/+merge/145432
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-addons/fix-1109018-account_cashbox_line_many2one_cascade.
=== modified file 'account/account_cash_statement.py'
--- account/account_cash_statement.py	2012-12-17 15:23:03 +0000
+++ account/account_cash_statement.py	2013-01-29 16:24:46 +0000
@@ -343,7 +343,7 @@
     _rec_name = 'pieces'
     _columns = {
         'pieces': fields.float('Values', digits_compute=dp.get_precision('Account')),
-        'journal_id' : fields.many2one('account.journal', 'Journal', required=True, select=1),
+        'journal_id' : fields.many2one('account.journal', 'Journal', required=True, select=1, ondelete='cascade'),
     }
 
     _order = 'pieces asc'