跳至内容
菜单
此问题已终结
2 回复
5772 查看

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?

最佳答案

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




形象
丢弃
相关帖文 回复 查看 活动
3
11月 23
2285
0
5月 19
3640
1
5月 18
8491
1
5月 15
5713
1
3月 15
4331