Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: [8.0][OCA/server-tools] web_context_tunnel doesn't update context values

by
KMEE Informatica ltda, Luis F Miléo
- 26/05/2016 19:12:56
Hi,

We are using web_context_tunnel in v8 at l10n-brazil.

Please se the example:

https://github.com/OCA/l10n-brazil/blob/8.0/l10n_br_sale/views/sale_view.xml#L40
https://github.com/OCA/l10n-brazil/blob/8.0/l10n_br_sale/models/sale.py#L338

You have to use the old api on_change

Any doubt feel free to call me any time.

Best regards

- Luis Felipe Miléo
Gerência de Implementação
+55 21 4063-8872 (RJ)
Parceiro oficial:
  


De: "Sodexis, Atchuthan Ubendran" <atchuthantu@gmail.com>
Para: "Contributors" <contributors@odoo-community.org>
Enviadas: Terça-feira, 24 de maio de 2016 4:53:32
Assunto: [8.0][OCA/server-tools] web_context_tunnel doesn't update context values

Hello community,

As I was trying to test the web_context_tunnel functionality in OCA's runbot.  I was unable to add a new context argument 'context_test' to the context values like in this description.  It seems the web_context_tunnel module doesn't work anymore in 8.0.

Runbot URL: http://3147379-8-0-aae74f.runbot1.odoo-community.org/web?db=3147379-8-0-aae74f-all

context: {'test_field1': 'my_extra_field'}
context_test: {'test_field2': 'my_extra_field'}

Current Behaviour:
context not updated. context is {'test_field1': 'my_extra_field'}

Expected Behaviour:
context updated and output in form view needs to be 
context: {'test_field1': 'my_extra_field','test_field2': 'my_extra_field'}

More info with screenshot: https://github.com/OCA/server-tools/issues/431

Let me know if I missed some steps if any.
Awaiting your kind response.
-- 

Thanks & Regards,
Atchuthan

_______________________________________________
Mailing-List: http://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: http://odoo-community.org/groups?unsubscribe