Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1812 Zobrazení

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

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
led 25
909
0
čvc 24
1974
0
kvě 24
1424
1
bře 24
2231
Out of Stock Vyřešeno
4
úno 24
5269