Odoo Help


How to avoid the packing operation?

Pascal Tremblay
on 3/22/15, 2:34 PM 2,711 views

Hello guys,

I know that Odo is a serious ERP.... But... 

I can cancel a picking operation in the warehouse. But I would want to delete it completely. Once the picking record is cancelled, I try to delete it, but I always get this error :

     Integrity Error

     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: Packing Operation - stock.pack.operation]

So, I go in the database, in the stock.pack.operation table, and I delete the associated stock operation line. I know, it's dangerous.

After this, I can delete the cancelled picking record.

My questions are :

1) COuld we avoid this stock.pack.operation line each time a picking operation is created?

Do you have an idea for us? still not able to avoid this pack operation.

Pascal Tremblay
on 7/14/15, 7:34 AM

555 views and no answers whatsoever. This is a BUG, or at least a really horrible feature...

Kevin Sawyer
on 1/7/16, 4:32 PM

We didn't change anything about this. Still the same thing.

Pascal Tremblay
on 1/7/16, 7:17 PM

As far as I know the stock.pack.operation are normally created when you press "Transfer" button in the stock.picking.

It would be nice to create some module that deletes the stock.pack.operation in cascade but I don't know if there's some functionality that could restrict this behaviour. I sometimes do the same you do (deleting the stock.pack.operation from the database), it's not so dangerous if the packs where never transferred.

Aitor Bouzas
on 6/16/16, 1:06 PM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/22/15, 2:34 PM
Seen: 2711 times
Last updated: 7/14/15, 7:34 AM