Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1814 Vistas

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

Avatar
Descartar
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
0
ene 25
910
0
jul 24
1980
0
may 24
1425
1
mar 24
2233
4
feb 24
5269