April 4, 2024, 9:50 p.m. | Fabian Anguiano

DEV Community dev.to




How to Programmatically Cancel MRP Records in Odoo

Sometimes, it's necessary to cancel specific manufacturing orders (MRPs) due to various reasons such as production issues, changes in demand, or material shortages. This article demonstrates how to programmatically cancel MRP records in Odoo using Python.





Pre-requisites


Before proceeding, ensure you have the following:



  • Odoo instance accessible via network

  • Administrative rights or API access credentials

  • Python environment with xmlrpc.client and requests libraries installed





Step 1: Disable SSL Verification


In a development or …

article demand manufacturing material odoo orders production python records

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Data Analyst (Digital Business Analyst)

@ Activate Interactive Pte Ltd | Singapore, Central Singapore, Singapore