I think I found the code that was removed. Module project (project.py), class account_analytic_account, in V4:
class account_analytic_account(osv.osv): _name = 'account.analytic.account' _description = "Analytic Accounts" <snip> def create(self, cr, uid, vals, context=None): parent_id = vals.get('parent_id', 0) if ('code' not in vals or not vals['code']) and not parent_id: vals['code'] = self.pool.get('ir.sequence').get(cr, uid, 'account.analytic.account') return super(account_analytic_account, self).create(cr, uid, vals, context=context)
Same method in V6:
def create(self, cr, uid, vals, context=None): if context is None: context = {} if vals.get('child_ids', False) and context.get('analytic_project_copy', False): vals['child_ids'] = [] return super(account_analytic_account, self).create(cr, uid, vals, context=context)
If this is not considered a bug, I might create a module to reintroduce this functionality.
I think I found the code that was removed. Module project (project.py), class account_ analytic_ account, in V4:
class account_ analytic_ account( osv.osv) : analytic. account'
_description = "Analytic Accounts"
parent_ id = vals.get( 'parent_ id', 0)
vals[ 'code'] = self.pool. get('ir. sequence' ).get(cr, uid, 'account. analytic. account' )
return super(account_ analytic_ account, self).create(cr, uid, vals, context=context)
_name = 'account.
<snip>
def create(self, cr, uid, vals, context=None):
if ('code' not in vals or not vals['code']) and not parent_id:
Same method in V6:
def create(self, cr, uid, vals, context=None): 'child_ ids', False) and context. get('analytic_ project_ copy', False):
vals[ 'child_ ids'] = [] analytic_ account, self).create(cr, uid, vals, context=context)
if context is None:
context = {}
if vals.get(
return super(account_
If this is not considered a bug, I might create a module to reintroduce this functionality.