[FIX] account: correctly handle 'false' close_method
bzr revid: xmo@openerp.com-20121001075931-zyrmydt1s7uz7ihk
This commit is contained in:
parent
45ee8b434d
commit
49998b5f72
|
@ -155,6 +155,7 @@ class account_account_type(osv.osv):
|
|||
return res
|
||||
|
||||
def _save_report_type(self, cr, uid, account_type_id, field_name, field_value, arg, context=None):
|
||||
field_value = field_value or 'none'
|
||||
obj_data = self.pool.get('ir.model.data')
|
||||
obj_financial_report = self.pool.get('account.financial.report')
|
||||
#unlink if it exists somewhere in the financial reports related to BS or PL
|
||||
|
|
Loading…
Reference in New Issue