'int' object is unsubscriptable in Compute Asset
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Won't Fix
|
Undecided
|
Bogdan Stanciu |
Bug Description
This is pertaining to revno 4633.
When the Compute Asset wizard is executed (Accounting >> Periodical Processing >> Asset Calculation >> Compute Asset), it produces 'int' object is unsubscriptable error. Below is the detailed stack trace.
The source of the problem is line 69 of wizard/
period = obj_asset.
It passes the data['period_id'] as an integer (id) whereas the _check_date method is expecting a list.
Attached is the proposed patch for this bug.
The following is the stack trace:
File "../openobject-
result = ExportService.
File "../openobject-
res = fn(db, uid, *params)
File "../openobject-
return f(self, dbname, *args, **kwargs)
File "../openobject-
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "../openobject-
return getattr(object, method)(cr, uid, *args, **kw)
File "../openobject-
period = obj_asset.
File "../openobject-
period = period_
TypeError: 'int' object is unsubscriptable
Related branches
Changed in openobject-addons: | |
assignee: | nobody → Bogdan Stanciu (bstanciu) |
Hello Ivan,
I have checked your issue with account_asset module of latest trunk which is currently available in official
addons so you can try with this module instead of "account_ fixed_assets" . I have attached video for your more
reference would you please check it.
Our R&D Teams are focused on the latest OpenERP version, and this issue does not affect it.
Our policy is to keep the changes applied on stable branches to a minimum, in order to limit the regression risks
for customers that are in production. This means that bugs reported on Launchpad are fixed in the trunk branch
only by default, even if they were reported against other stable versions.
Thank you for your understanding!