[FIX] Account : Dupliacting tax code should not copy move lines
bzr revid: jma@tinyerp.com-20100512125015-bfenjfagj8zf2imi
This commit is contained in:
parent
f93cca1e7e
commit
746198e335
|
@ -1330,7 +1330,15 @@ class account_tax_code(osv.osv):
|
|||
return False
|
||||
level -= 1
|
||||
return True
|
||||
|
||||
|
||||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
if default is None:
|
||||
default = {}
|
||||
default = default.copy()
|
||||
default.update({'line_ids': []})
|
||||
return super(account_tax_code, self).copy(cr, uid, id, default, context)
|
||||
|
||||
_constraints = [
|
||||
(_check_recursion, 'Error ! You can not create recursive accounts.', ['parent_id'])
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue