Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

What is the function that changes picking state in odoo ver 8?

By
Andre Leander
on 9/11/14, 1:16 AM 3,155 views

Hello guys.. I am trying to develop module in Odoo/Openerp ver 8 and I am stuck in warehouse module where is there are many changes compared with ver 7. In ver 8, I can not find workflow for Stock Picking or workflow in Warehouse module. And I don't understand how to change the picking state. What is the function that changes picking state in odoo ver 8?, I mean in official function like action_confirm or action_done. I see that there is no any "write" function to change state in those function. 

Thank you guys and please help ...

0
kh@lidoss
On 9/11/14, 5:42 AM

Hi,

The state of a picking depends primarily on its moves, it is a funcion field:

* If any move is draft, the picking is draft
* If all moves are done/cancel, the picking is done/cancel

The other states depend however also on the move type. The move type determines whether the customer expects to get all products of a picking at once (=all at once) or he wants it delivered to him as fast as possible. (=partial)  This move type can be determined manually, or can e.g. come from a sale order where it will be passed through the procurement group. 

In case of partial, a special state exists: partial availability.  It is possible that a move is in the confirmed / waiting state, but has partially some stock reserved.  This move will still be in the waiting/confirmed state, but have a flag partially available.  In that case, the picking will not stay in the confirmed/waiting state but go to the partially available state, which makes it possible to deliver the goods partially.  A picking is also partially available when some moves are assigned and others have no stock at all reserved. 

Sometimes a move does not have a picking type.  This means it will not be assigned to a picking.  This is the case for inventory corrections and moves in and out of production. 

Wow.. Thank you for your answer. This is very helpful. Now I understand that state field function call _state_get function. This function will change the state of picking.

Andre Leander
on 9/11/14, 9:28 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/11/14, 1:16 AM
Seen: 3155 times
Last updated: 3/16/15, 8:10 AM