[IMP] Account: on duplicating fiscal year do not copy the periods, do not copy the journal period of end of year

bzr revid: pap@tinyerp.co.in-20100903060937-p1jytkxomm9y1rll
This commit is contained in:
pap (openerp) 2010-09-03 11:39:37 +05:30
parent 3d975173ed
commit 508df45fb5
1 changed files with 7 additions and 0 deletions

View File

@ -975,6 +975,13 @@ class account_fiscalyear(osv.osv):
_columns = {
'end_journal_period_id':fields.many2one('account.journal.period','End of Year Entries Journal', readonly=True),
}
def copy(self, cr, uid, id, default={}, context=None):
default.update({
'period_ids': [],
'end_journal_period_id': False
})
return super(account_fiscalyear, self).copy(cr, uid, id, default=default, context=context)
account_fiscalyear()
#----------------------------------------------------------