Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2419 Lượt xem

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?


Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả Câu trả lời hay nhất

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?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 23
2595
1
thg 2 23
2672
1
thg 11 22
3861
1
thg 8 22
1912
1
thg 8 22
2385