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 to avoid a new line in stock.pack.operation each time a new picking is created?

By
Pascal Tremblay
on 4/11/15, 2:22 PM 664 views

Hello there,

Each time a new picking is created, a new line is created in stock.pack.operation.

How to avoid this stock.pack.operation line? What is his utility?

Thanks for your idea.

Little up here... somebody would have an idea?

Pascal Tremblay
on 7/14/15, 7:10 AM
1
Chandni
On 11/3/16, 7:14 AM

Hi,

Firstly when you confirm sale order it will create Draft Delivery Order and its line. Now, line object would be stock.move, after that when you perform any kind of operation on that DO, you will see object changed. It is now stock.pack.operation.


It is coming from this method:

do_prepare_partial() of class stock_picking

you will find this line.: pack_operation_obj.create(cr, uid, vals, context=context) 

It is creating pack operation from move, and where pack_operation_obj = self.pool.get('stock.pack.operation')

Now if you want to stop this You have to customise the code, override method do_prapare_partial or try by commenting line where pack operation is created. 

Thanks,

Chandni




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: 4/11/15, 2:22 PM
Seen: 664 times
Last updated: 11/3/16, 9:26 AM