Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4780 Visualizzazioni

I have a problem when updating the name field of a model from Odoo Online 11.0 and afterwards reading the value by the API: After changing the 'name' field, the API still reads the original (=old) value of this field, but not the actual (=new) one.

Is there  another (hidden) field which contains the actual value? The only similar field is named 'display_name', but it also contains the same value as the 'name' field.

The code I use looks something like that:

products = models.execute_kw(db, uid, password, 'product.public.category', 'search_read', [[]], {})
  for product in products:
    print product['name']
Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
gen 21
4962
0
giu 21
2795
2
lug 24
1769
2
mag 24
7173
2
mar 24
4078