Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4727 มุมมอง

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']
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 21
4925
0
มิ.ย. 21
2758
2
ก.ค. 24
1745
2
พ.ค. 24
7145
2
มี.ค. 24
4046