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

is there a way to know what is the transfer that a picking waiting for when its state is waiting another operation?

形象
丢弃
最佳答案

Hello Beshoy Nabeih , 


    To identify the transfer that a picking is waiting for in Odoo 17, you can:

      

    1) Use the Odoo user interface to check related transfers.

    

     i) Navigate to the Inventory Module:


  Go to Inventory > Operations > Transfers.

       

       inser_image_1

       

     ii) Filter the Transfers:


    Use the filters to find the picking that is in the state "Waiting Another Operation" (state 'waiting'). \

   

            iii) Check the Dependencies:


                 - Open the picking record that is in the waiting state.

                 - In the picking details view, check the Related Transfers or Preceding Transfer field. 

                   This field usually shows the related picking that needs to be completed first.

       

    2) Using the Odoo ORM (for developers)


       - If you have access to Odoo's backend or want to use server actions or custom scripts, 

          you can use the Odoo ORM to find the related picking.


       - Here is a simple script that you can run in the Odoo shell or as a server action to 

         find out which transfer a picking is waiting for:

         

         # Get all pickings in 'waiting' state

           waiting_pickings = env['stock.picking'].search([('state', '=', 'waiting')])


   for picking in waiting_pickings:

      related_moves = picking.move_lines.mapped('move_dest_ids')

      if related_moves:

  related_pickings = related_moves.mapped('picking_id')

  print(f"Picking {picking.name} is waiting for:")

  for related_picking in related_pickings:

    print(f"  - {related_picking.name}")

      else:

print(f"Picking {picking.name} is waiting, but no related moves found.")


I Hope this information proves helpful to you.

Thanks & Regards,

Email:   odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari 

形象
丢弃
相关帖文 回复 查看 活动
0
1月 25
909
0
7月 24
1971
0
5月 24
1424
1
3月 24
2230
Out of Stock 已解决
4
2月 24
5266