I am using python and trying to archive and unarchive products using XMLRPC. The python code is as follow:
self.models.execute_kw(self.db,self.uid,self.password, "product.template", "write",[ids, {"active": True}])
The code worked for archiving a product, by updating the active column to be False, but when I run it to unarchive the product and set the column to be True it won't work. No error is returned and it simply does nothing to the product/database. Is there any way to do this?