Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
1813 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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 

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
ian. 25
909
0
iul. 24
1975
0
mai 24
1424
1
mar. 24
2232
4
feb. 24
5269