projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71e4669
)
[FIX] account: assigned single id instead of list of ids in default period of account...
author
vra
<vra@tinyerp.com>
Tue, 31 Aug 2010 09:48:53 +0000
(15:18 +0530)
committer
vra
<vra@tinyerp.com>
Tue, 31 Aug 2010 09:48:53 +0000
(15:18 +0530)
bzr revid: vra@tinyerp.com-
20100831094853
-shqcmgmpzs8a2ag3
addons/account/wizard/account_tax_chart.py
patch
|
blob
|
history
diff --git
a/addons/account/wizard/account_tax_chart.py
b/addons/account/wizard/account_tax_chart.py
index
5b5feaf
..
1595a60
100644
(file)
--- a/
addons/account/wizard/account_tax_chart.py
+++ b/
addons/account/wizard/account_tax_chart.py
@@
-37,7
+37,8
@@
class account_tax_chart(osv.osv_memory):
def _get_period(self, cr, uid, context=None):
"""Return default period value"""
- return self.pool.get('account.period').find(cr, uid)
+ period_ids = self.pool.get('account.period').find(cr, uid)
+ return period_ids and period_ids[0] or False
def account_tax_chart_open_window(self, cr, uid, ids, context=None):
"""