diff options
| author | Stephane Wirtel <stephane@tinyerp.com> | 2009-01-06 10:44:10 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@tinyerp.com> | 2009-01-06 10:44:10 +0100 |
| commit | dc585533710d3db84dbc19ec377c977375652d30 (patch) | |
| tree | df49d54a64bc76a79958fe13b6d0d0ab90745066 | |
| parent | 59963a989961dac292fc72bb7ca560557557594a (diff) | |
[FIX] Use an exception instead of a string
lp bug: https://launchpad.net/bugs/314292 fixed
bzr revid: stephane@tinyerp.com-20090106094410-grcs9egk9349ozh3
| -rw-r--r-- | addons/account/account_move_line.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 3bb49a94f7b..ee98934d91e 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -493,7 +493,7 @@ class account_move_line(osv.osv): merges_rec = [] for line in self.browse(cr, uid, ids, context): if line.reconcile_id: - raise _('Already Reconciled') + raise osv.except_osv(_('Already Reconciled'), _('Already Reconciled')) if line.reconcile_partial_id: for line2 in line.reconcile_partial_id.line_partial_ids: if not line2.reconcile_id: |
