[FIX] account : Create Monthly Periods : unique key violation on Opening Periods
lp bug: https://launchpad.net/bugs/894707 fixed bzr revid: mdi@tinyerp.com-20111128050938-5e2vizusnvq8zbth
This commit is contained in:
parent
b31cba394e
commit
80dc65aeea
|
@ -880,7 +880,7 @@ class account_fiscalyear(osv.osv):
|
|||
for fy in self.browse(cr, uid, ids, context=context):
|
||||
ds = datetime.strptime(fy.date_start, '%Y-%m-%d')
|
||||
period_obj.create(cr, uid, {
|
||||
'name': _('Opening Period'),
|
||||
'name': "%s %s" % (_('Opening Period'), ds.strftime('%Y')),
|
||||
'code': ds.strftime('00/%Y'),
|
||||
'date_start': ds,
|
||||
'date_stop': ds,
|
||||
|
|
Loading…
Reference in New Issue