diff --git a/account_financial_report/view/wizard.xml b/account_financial_report/view/wizard.xml
index fe54664e..8ee55e72 100644
--- a/account_financial_report/view/wizard.xml
+++ b/account_financial_report/view/wizard.xml
@@ -41,6 +41,7 @@
+
@@ -51,7 +52,7 @@
colspan="4"
nolabel="1"
domain="[('fiscalyear_id','=',fiscalyear),('special','=',False),('company_id','=',company_id)]"
- attrs="{'readonly':[('columns','=','thirteen')],}"
+ attrs="{'readonly':[('columns','in',('qtr','thirteen'))],}"
>
diff --git a/account_financial_report/wizard/wizard.py b/account_financial_report/wizard/wizard.py
index 5b279ba8..6c68b42f 100644
--- a/account_financial_report/wizard/wizard.py
+++ b/account_financial_report/wizard/wizard.py
@@ -73,12 +73,12 @@ class wizard_report(osv.osv_memory):
if context is None:
context = {}
res = {'value':{}}
- if columns=='thirteen':
+ if columns in ('qtr', 'thirteen'):
p_obj = self.pool.get("account.period")
periods = p_obj.search(cr,uid,[('fiscalyear_id','=',fiscalyear),('special','=',False)],context=context)
res['value'].update({'periods':periods})
else:
- res['value'].update({'periods':periods})
+ res['value'].update({'periods':[]})
return res
def onchange_company_id(self,cr,uid,ids,company_id,context=None):