openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #21177
[Bug 1040596] Re: [Trunk] _inherit with def copy (copy method) gives RuntimeError: maximum recursion depth exceeded while calling a Python object
Hello Ravish,
As you define you going to use,
class account_fiscalyear(osv.osv):
_inherit = "account.fiscalyear"
_description = "Fiscal Year"
_columns = {
}
account_fiscalyear()
in same file then its incorrect to do.
Instead use,
class account_fiscalyear_inherit(osv.osv):
_inherit = "account.fiscalyear"
_description = "Fiscal Year"
_columns = {
}
account_fiscalyear_inherit()
Please correct your inheritance within same file.
Thanks,
Tejas - tta
** Changed in: openobject-server
Status: In Progress => Invalid
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1040596
Title:
[Trunk] _inherit with def copy (copy method) gives RuntimeError:
maximum recursion depth exceeded while calling a Python object
Status in OpenERP Server:
Invalid
Bug description:
more info:
suppose I have made object like after the copy method of object
class account_fiscalyear(osv.osv):
_inherit = "account.fiscalyear"
_description = "Fiscal Year"
_columns = {
}
account_fiscalyear()
when I duplicate fiscal year view it will show me this trace back also refer this
lp:1021130
Thanks..!!
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1040596/+subscriptions
References