跳至内容
菜单
此问题已终结
1 回复
1899 查看

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.

形象
丢弃
最佳答案

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

形象
丢弃
编写者

Thank you so much. It worked.
:)

相关帖文 回复 查看 活动
1
5月 22
3319
Odoo XMLRPC 已解决
1
10月 21
5011
3
7月 25
746
3
2月 25
3579
0
5月 24
46