[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:
parent
3d975173ed
commit
508df45fb5
|
@ -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()
|
||||
#----------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue