[5.0] send context from editable tree view breaks

Bug #570778 reported by Omar (Pexego)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Sananaz (Open ERP)

Bug Description

Hi,

An error shows in web client when I click in editable list view in field with context when the list isn't editable when it is editable it works, for example is: "Financial Management/Periodical Processing/Bank Reconciliation/Statements reconciliation"

If you click on reconcile_id when isn't editable, it show:

<type 'exceptions.ValueError'>: dictionary update sequence element #0 has length 1; 2 is required
      args = ('dictionary update sequence element #0 has length 1; 2 is required',)
      message = 'dictionary update sequence element #0 has length 1; 2 is required'

Client log:

openerp-web/openerp/widgets/screen.py", line 136, in add_view_id
    ctx.update(self.context)
ValueError: dictionary update sequence element #0 has length 1; 2 is required

Inside xml the fields is declared as: <field context="{'partner_id': partner_id, 'amount': amount, 'account_id': account_id, 'date':date}" name="reconcile_id"/>

Tags: pexego

Related branches

Changed in openobject-client-web:
status: New → Confirmed
assignee: nobody → sma (Open ERP) (sma-tiny)
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello,

Its fixed in stable. Please update your code.

Revision-info:
2889 <email address hidden>

Thanks.

Changed in openobject-client-web:
status: Confirmed → Fix Released
milestone: none → 5.0.13
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.