[FIX] account: correctly handle 'false' close_method

bzr revid: xmo@openerp.com-20121001075931-zyrmydt1s7uz7ihk
This commit is contained in:
Xavier Morel 2012-10-01 09:59:31 +02:00
parent 45ee8b434d
commit 49998b5f72
1 changed files with 1 additions and 0 deletions

View File

@ -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