diff options
| author | Mantavya Gajjar <mga@tinyerp.com> | 2010-08-13 18:05:19 +0530 |
|---|---|---|
| committer | Mantavya Gajjar <mga@tinyerp.com> | 2010-08-13 18:05:19 +0530 |
| commit | 8d4041f04b3d98f485ec112e32db78e79d3e8a22 (patch) | |
| tree | bc19f1505e38a84e42c371d51925d1eae6ac1232 | |
| parent | 23e3cf71dedde1f3e78072d8ae24222b800d6692 (diff) | |
[FIX]: fix a name_search for account move
bzr revid: mga@tinyerp.com-20100813123519-wmz3jyddfr8vjb51
| -rw-r--r-- | addons/account/account.py | 4 | ||||
| -rw-r--r-- | addons/account/account_move_line.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/account/account.py b/addons/account/account.py index 5fc97a13697..b39ed2ab6a2 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1050,8 +1050,8 @@ class account_move(osv.osv): ids = [] if name: - ids += self.search(cr, user, [('state','=','draft'), ('id','=',name)], limit=limit) - + ids += self.search(cr, user, [('id','=',name)], limit=limit) + return self.name_get(cr, user, ids, context=context) def name_get(self, cursor, user, ids, context=None): diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index 1c8d0648c82..effcdf9a106 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -337,7 +337,7 @@ class account_move_line(osv.osv): invoice_id = res[line_id] res[line_id] = (invoice_id, invoice_names[invoice_id]) return res - + def name_get(self, cr, uid, ids, context={}): if not len(ids): return [] |
