Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

Re: Fixing Regression in Client

by
Holger Brunn
- 14/11/2016 23:17:43
> I'm not
> that strong on web client stuff, how to inherit, modify create widgets etc,
> but good enough that I can get started with some direction. Thanks in
> advance for any help.

the problem probably lies in the field's set_value and get_value functions, 
which only implement a subset of the available x2x commands:
https://github.com/OCA/OCB/blob/8.0/addons/web/static/src/js/
view_form.js#L4253
I assume if you implement the missing commands, fix whatever weird problems 
this creates (I expect it will), you'll be fine.
But you should think quite hard if this is worth the trouble, and if you can't 
replace (on the UI part, not the data model) the fields by buttons. Then 
everything must be saved, but this should work with any version of odoo.

-- 
Therp - Maatwerk in open ontwikkeling

Holger Brunn - Ontwerp en implementatie

mail: holger@therp.nl
web: http://therp.nl

Reference