Skip to Content
Menú
This question has been flagged
1 Respondre
1805 Vistes

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

Avatar
Descartar
Best Answer

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 

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de gen. 25
906
0
de jul. 24
1968
0
de maig 24
1420
1
de març 24
2228
4
de febr. 24
5264