[6.0.2 rev 4591/4592] TypeError: 'int' object is unsubscriptable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
Hey all
bzr revision 4591/4592
How to reproduce:
Accounting / Journal Entries / Journal Entries
. Create new Journal Entry
. Create new Journal Item: Enter Name, Account, Debit and press Enter
. Error:
Traceback (most recent call last):
File "/opt/openerp/
result = ExportService.
File "/opt/openerp/
res = fn(db, uid, *params)
File "/opt/openerp/
return f(self, dbname, *args, **kwargs)
File "/opt/openerp/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/opt/openerp/
return getattr(object, method)(cr, uid, *args, **kw)
File "/opt/openerp/
data = self._default_
File "/opt/openerp/
if i[2]:
TypeError: 'int' object is unsubscriptable
. Close Error message
. Click into Reference field of the new journal Item and press ESC
. Journal Item will be generated
. Click on new (Journal Item) same error comes up
After first error message "Loading" bar on top stays open
regards
thomi
Related branches
- Olivier Dony (Odoo): Pending requested
- Stephane Wirtel (OpenERP): Pending requested
- OpenERP Core Team: Pending requested
-
Diff: 23 lines (+8/-5)1 file modifiedaccount/account_move_line.py (+8/-5)
summary: |
- TypeError: 'int' object is unsubscriptable + [6.0.2 rev 4591/4592] TypeError: 'int' object is unsubscriptable |
Changed in openobject-client-web: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
affects: | openobject-client-web → openobject-addons |
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
affects: | openobject-addons → openobject-client-web |
Changed in openobject-client-web: | |
assignee: | OpenERP R&D Addons Team 3 (openerp-dev-addons3) → nobody |
assignee: | nobody → OpenERP SA's Web Client R&D (openerp-dev-web) |
affects: | openobject-client-web → openobject-addons |
Changed in openobject-addons: | |
assignee: | OpenERP SA's Web Client R&D (openerp-dev-web) → nobody |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | In Progress → Fix Committed |
milestone: | none → 6.0.3 |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
Hello,
I have checked the issue in latest addons/ server/ client/ web.
I am getting same error in web-client only not in gtk. In Gtk-client it works fine.
And the problem i think the passing of context for o2m field is not same as Gtk-client passed.
In Web-client:
print context['lines'] => [24]
And in Gtk-client account_ id': False, 'tax_code_id': False, 'tax_amount': False, 'account_id': 9, 'ref': False, 'currency_id': False, 'credit': False, 'state': 'draft', 'date_maturity': False, 'invoice': False, 'debit': 100.0, 'amount_currency': False, 'partner_id': False, 'reconcile_id': False, 'reconcile_ partial_ id': False, 'name': 'sale'}), (2, 28, False), (2, 27, False), (2, 26, False), (2, 25, False), (2, 22, False), (2, 21, False), (2, 20, False), (2, 19, False)].
print context['lines'] =>
[(0, 0, {'analytic_
So need to check by Webclient team.
Thank you,
mra