I'm new to Odoo and I'm building a python backend which should create products and price lists in Odoo through API calls. Everything went fairly easy until I tried programatically setting a Price List as archived.
From my research I found that the archive setting is directly linked to the 'Active' property of the Price List. Unfortunately, my code isn't working, and the Price List is still active and unarchived.
price_id = models.execute_kw(db, uid, password, 'product.pricelist', 'create', [{
'name': "Test List",
'currency_id': "1",
'active':'False'
}])
UPDATED
I cannot seem to archive a product. The active property is updated to False, but the product still appears in the product list and not in the archived product list.
models.execute_kw(db, uid, password, 'product.product', 'write', [[prod_id], {
'name': "Testing Apple MacBook 111", 'active':False, 'is_product_variant':False
}])