Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Hi I've just started with Odoo (sandbox no data) and I've successfully created 2 warehouses and I want to delete one of them.
When I tried to delete one I have the following error message :
The operation cannot be completed, probably due to the following:
- deletion: you may be trying to delete a record while other records still reference it- creation/update: a mandatory field is not correctly set
[object with reference: Procurement Rule - procurement.rule]
I see we can archieve it but i really want to delete it how can I do ?
Hi Benoit R,
This Tell you that you try to delete this warehouse while some Procurement Rule records still reference it.
So, you should delete those records before deleting the warehouse.
To do that,
First you have to activate the advanced routing feature to access the procurement rule menu
1-Activate the developer mode
2- Go to the configuration menu for inventory on Configuration/Settings
3- Check "Advanced routing of products using rules" and apply
Then go to Inventory/Configuration/Routes/Global Procurement Rules
Finally, delete the Procurement Rules related to the undesirable warehouse.
Same for other records like stock location, operations type, etc ..
I'm had problems with this as well, trying to setup Odoo 10,, but following the tips mentioned above doesn't solve it for me. I deleted ALL global procurement rules and operation types. I cannot delete the locations however (gives error: object with reference: Warehouse - stock.warehouse). And when I try to delete the warehouse I get: object with reference: Procurement Rule - procurement.rule
Again, my global procurement rules list is completely empty (also after unchecking the 'global' filter in the search field)
What am I missing?
Thanks in advance for any help
Edit: solved this. there were archived global procurement rules I hadn't noticed. Sorry...
Thanks a lot Bejaoui, I'm convinced it's the correct answer for the on premise solution but unfortunatly I cannot see the Procurement Rules in the odoo saas version following the indicated path (Inventory/Configuration/Routes/Global Procurement Rules)
Do you have an idea to access to it with the saas version ?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/21/16, 10:04 AM|
|Seen: 823 times|
|Last updated: 12/13/16, 7:57 AM|