[IMP] Se Agregan cambio en la vista en lista
de los accounts para mostrar el nivel de la cuenta se modifica onchange de columns, para hacerlo sensible a los cambios en QTR.6.0
parent
e743a1329e
commit
31bc8ba2ec
|
@ -41,6 +41,7 @@
|
||||||
<field name='code'/>
|
<field name='code'/>
|
||||||
<field name='name'/>
|
<field name='name'/>
|
||||||
<field name='type'/>
|
<field name='type'/>
|
||||||
|
<field name='level'/>
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</group>
|
</group>
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
colspan="4"
|
colspan="4"
|
||||||
nolabel="1"
|
nolabel="1"
|
||||||
domain="[('fiscalyear_id','=',fiscalyear),('special','=',False),('company_id','=',company_id)]"
|
domain="[('fiscalyear_id','=',fiscalyear),('special','=',False),('company_id','=',company_id)]"
|
||||||
attrs="{'readonly':[('columns','=','thirteen')],}"
|
attrs="{'readonly':[('columns','in',('qtr','thirteen'))],}"
|
||||||
>
|
>
|
||||||
|
|
||||||
<tree>
|
<tree>
|
||||||
|
|
|
@ -73,12 +73,12 @@ class wizard_report(osv.osv_memory):
|
||||||
if context is None:
|
if context is None:
|
||||||
context = {}
|
context = {}
|
||||||
res = {'value':{}}
|
res = {'value':{}}
|
||||||
if columns=='thirteen':
|
if columns in ('qtr', 'thirteen'):
|
||||||
p_obj = self.pool.get("account.period")
|
p_obj = self.pool.get("account.period")
|
||||||
periods = p_obj.search(cr,uid,[('fiscalyear_id','=',fiscalyear),('special','=',False)],context=context)
|
periods = p_obj.search(cr,uid,[('fiscalyear_id','=',fiscalyear),('special','=',False)],context=context)
|
||||||
res['value'].update({'periods':periods})
|
res['value'].update({'periods':periods})
|
||||||
else:
|
else:
|
||||||
res['value'].update({'periods':periods})
|
res['value'].update({'periods':[]})
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def onchange_company_id(self,cr,uid,ids,company_id,context=None):
|
def onchange_company_id(self,cr,uid,ids,company_id,context=None):
|
||||||
|
|
Loading…
Reference in New Issue