No context given in x2many relation in gtk client

Bug #581816 reported by Jean-Sebastien SUZANNE - http://www.Syleam.fr
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
Medium
Naresh(OpenERP)

Bug Description

Hi

in a xml view, when you use a context for a one2many relation, this context not send to server by gtk client, but it send by web client.

<field name="my relation" context={"my context":"my context value"}>
  <field name="name"/>
</field>

Regards Jean-Sébastien

Related branches

Changed in openobject-client:
status: New → Confirmed
importance: Undecided → Medium
summary: - No context given in one2many relation in gtk client
+ No context given in x2many relation in gtk client
Changed in openobject-client:
milestone: none → 5.0.13
Revision history for this message
Diego Abad (dabada83) wrote :

try with context={"my context":"my context value", 'group_by':[]}

see this on one2many_list.py on gtk_client

Revision history for this message
Diego Abad (dabada83) wrote :

change sig_edit function on client/bin/widget/view/form_gtk/one2many_list.py :

        ctx = dict(self._view.model.expr_eval(self.screen.default_get), **self.context)
        ctx.update(self._view.model.expr_eval('dict(%s)' % self.attrs.get('context', '{}')))

and send new context to dialog

 dia = dialog(self.attrs['relation'], parent=self._view.model, model=self.screen.current_model, attrs=self.attrs, window=self._window, readonly=self._readonly, context=ctx)

this is similar to sig_new

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello,

Thanks for reporting, It has been fixed in trunk gtk client with revision-info 1589 <email address hidden>.

Thanks,

Changed in openobject-client:
status: Confirmed → In Progress
assignee: nobody → nch(OpenERP) (nch-openerp)
milestone: 5.0.13 → 6.0
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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