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

Howdy everyone,

I'm developing a Python Script to sync products from an external management software to Odoo.

I create products that don't exist in Odoo yet and I update the existing ones.
What I'm trying to obtain is archiving products I don't have in my management software anymore.

To do this, I'm updating the products via XMLRPC and setting the "active" field to False.

If I try to get the product via XMLRPC, I can see the "active" field is indeed set to False, but in my Odoo instance, it still shows up in the active products list.


Is there something I'm missing here?


Thanks in advance and have a great day.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Angelo,

Make sure that you have archived bott the product.product and related product.template records.If you are archiving the product.product record try to archive the corresponding product template also , you will get the template_id from product_tmpl_id field in the product
Thank you

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

Thank you so much. It worked.
:)

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 22
3589
Odoo XMLRPC Đã xử lý
1
thg 10 21
8816
2
thg 8 25
2866
3
thg 7 25
1198
3
thg 2 25
4075