Default field values and O2M in Web Client

Bug #429470 reported by Thierry GAONA - Axelor
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Sananaz (Open ERP)

Bug Description

Hello,

First of all it seems like impossible to set a default value for a O2M in Web Client.
Passing through GTK client is ok, and works fine.
If I set up a new default value for a O2M in GTK client, by creating a new record without saving it (so that we don't get the id of the parent record in the default value), it will work fine in GTK client by creating other new record, but won't in Web Client and gives an error of this kind:

Erreur d'application !
ERREUR: erreur de syntaxe sur ou près de « { »
LINE 1: ...endor_name2",id from "jayco_vendors" where id in ({'vendor_p...
                                                             ^

select "vendor_product_code_o2m","vendor_price","vendor_name2",id from "jayco_vendors" where id in ({'vendor_product_code_o2m': False, 'vendor_price': False, 'vendor_total_available_quantities': False, 'vendor_name2': 5},{'vendor_product_code_o2m': False, 'vendor_price': False, 'vendor_total_available_quantities': False, 'vendor_name2': 6},{'vendor_product_code_o2m': False, 'vendor_price': False, 'vendor_total_available_quantities': False, 'vendor_name2': 8},{'vendor_product_code_o2m': False, 'vendor_price': False, 'vendor_total_available_quantities': False, 'vendor_name2': 7}) order by id

Changed in openobject-client-web:
status: New → Confirmed
Revision history for this message
Amit Mendapara (cristatus) wrote :

Default O2M values won't work with web client. Web client doesn't cache O2M records in memory as GTK client does. We'll fix the error though...

Changed in openobject-client-web:
assignee: nobody → sma (Tiny) (sma-tiny)
milestone: none → 5.0.7
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

hello,

Its already committed in trunk. Now merged in stable please update your code.

Thanks.

Changed in openobject-client-web:
status: Confirmed → Fix Committed
Changed in openobject-client-web:
status: Fix Committed → Fix Released
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.