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

Field value updated and successful saved through "SAVE" button in web-browser. Update of "write_date" field of the object is identified also through export in web-interface. So far so good. But my problem is:

through xmlrpc using code like:

models.execute_kw(
db_name, user_id, password,
'product.product', 'read', [pid],
{'fields': ['pn', 'changed_field', 'write_date']})

I can see the changed_field is modified, but the "write_date" is not changed like I see in export through web interface.

Can anybody give some hints, how can this happen?


อวตาร
ละทิ้ง
ผู้เขียน

found solution of the problem: I need to use "product.template" instead of "product.product", because my extended attributes which I have modified in my tests are defined to inherit "product.template".
"product.product" contains somehow all fields but maintains their own write_date field, which is used in export in browser.
The real write_date is maintained in product.template

ผู้เขียน คำตอบที่ดีที่สุด

I'm still hanging in this problem, so I can not run a script regularly to get only changed DB items since e.g. last hour. Can anybody give me some idea?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 23
2592
1
ก.พ. 23
2668
1
พ.ย. 22
3857
1
ส.ค. 22
1904
1
ส.ค. 22
2381