← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 682756] [NEW] Context sometimes missing when calling fields_view_get or name_get

 

Public bug reported:

When I open a list view from the menu, I can see Web Client making the following RPC calls:
 - tree_but_open()
 - fields_view_get('search')
 - fields_get()
 - fields_view_get('tree')
 - search()
 - read()
 - ir.values.get(..'client_action_multi'..)
 - ir.values.get(..'client_print_multi'..)

All these calls have the context passed with lang and timezone, except the fields_get() call.
I haven't tracked down yet if this is the reason, but on diagram views (e.g workflows), the field names are not translated when double-clicking on a node, while the translations do exist and work in GTK (granted, only after having patched bug 682735 ;-))

I can also see the call to name_get without context when opening the
diagram view for Workflow.

Please pass the context in these requests and verify that we don't have
similar issues in other places...

Thanks!

** Affects: openobject-client-web
     Importance: Low
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Confirmed

** Description changed:

  When I open a list view from the menu, I can see Web Client making the following RPC calls:
   - tree_but_open()
   - fields_view_get('search')
   - fields_get()
   - fields_view_get('tree')
   - search()
   - read()
-  - ir.values.get(..'client_action_multi'..)
-  - ir.values.get(..'client_print_multi'..)
+  - ir.values.get(..'client_action_multi'..)
+  - ir.values.get(..'client_print_multi'..)
  
  All these calls have the context passed with lang and timezone, except the fields_get() call.
  I haven't tracked down yet if this is the reason, but on diagram views (e.g workflows), the field names are not translated when double-clicking on a node, while the translations do exist and work in GTK (granted, only after having patched bug 682735 ;-))
  
  I can also see the call to name_get without context when opening the
  diagram view for Workflow.
  
- Please pass the context in these requests and verify if that we don't
- have similar issues in other places...
+ Please pass the context in these requests and verify that we don't have
+ similar issues in other places...
  
  Thanks!

-- 
Context sometimes missing when calling fields_view_get or name_get
https://bugs.launchpad.net/bugs/682756
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Web Client: Confirmed

Bug description:
When I open a list view from the menu, I can see Web Client making the following RPC calls:
 - tree_but_open()
 - fields_view_get('search')
 - fields_get()
 - fields_view_get('tree')
 - search()
 - read()
 - ir.values.get(..'client_action_multi'..)
 - ir.values.get(..'client_print_multi'..)

All these calls have the context passed with lang and timezone, except the fields_get() call.
I haven't tracked down yet if this is the reason, but on diagram views (e.g workflows), the field names are not translated when double-clicking on a node, while the translations do exist and work in GTK (granted, only after having patched bug 682735 ;-))

I can also see the call to name_get without context when opening the diagram view for Workflow.

Please pass the context in these requests and verify that we don't have similar issues in other places...

Thanks!







Follow ups

References