Odoo Help

Welcome!

This community 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.

0

How can I delete a warehouse

By
Benoit R
on 10/21/16, 10:04 AM 386 views

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 ?

Thanks Bejaoui for your reply,

Unfortunately I have no idea where the procurement rule records are set, I added no records except a new warehouse.

Do you have an idea where I can find default  procurement rules to delete in the app ?

Kind regards

Benoit R
on 10/21/16, 11:43 AM

Procurement rules are created by default with the warehouse.

I updated the answer to explain how to find them.

Bejaoui Souheil
on 10/21/16, 2:44 PM
1

Bejaoui Souheil

--Bejaoui Souheil--
808
| 2 1 4
Sousse, Tunisia
--Bejaoui Souheil--

Odoo developer,  functional and technical consultant

souheil_bejaoui@hotmail.fr

Bejaoui Souheil
On 10/21/16, 10:56 AM

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 ..

Best regards.


0
Benoit R
On 10/22/16, 7:31 AM

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 ?

Kind regards,

Benoit



I forgot to mention that you have to activate the developer mode.

Otherwise, It's the same, for all version.

Bejaoui Souheil
on 10/22/16, 8:20 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/21/16, 10:04 AM
Seen: 386 times
Last updated: 10/22/16, 7:31 AM