projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5b14504
)
Bugfix 349756 for no fiscal year defined without demo data
author
husen daudi
<hda@hda>
Tue, 14 Apr 2009 12:14:45 +0000
(17:44 +0530)
committer
husen daudi
<hda@hda>
Tue, 14 Apr 2009 12:14:45 +0000
(17:44 +0530)
lp bug: https://launchpad.net/bugs/349756 fixed
bzr revid: hda@hda-
20090414121445
-do3epi0c1ghfsqgn
addons/account_report/account.py
patch
|
blob
|
history
diff --git
a/addons/account_report/account.py
b/addons/account_report/account.py
index
bf8c697
..
29a2fe0
100644
(file)
--- a/
addons/account_report/account.py
+++ b/
addons/account_report/account.py
@@
-59,9
+59,9
@@
class account_report(osv.osv):
def _calc_context(key,obj):
if key==0:
- return obj.find(cr,uid)
+ return obj.find(cr,uid,exception=False)
else:
- obj_key=obj.browse(cr,uid,obj.find(cr,uid))
+ obj_key=obj.browse(cr,uid,obj.find(cr,uid,exception=False))
if isinstance(obj_key,list):
obj_key=obj_key[0]
key_ids=obj.search(cr,uid,[('date_stop','<',obj_key.date_start)])