Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I am trying to understand when pack_operations_ids are used and when move_lines are used.
I do not understand what pack_operations_ids represents from a functional point of view.
The move_lines describes what should happen, and the pack_operation_ids describes how that happened.
If there is a PO requesting 5 units of X product.
this will generate a picking with stock move [not yet a pack_operation_ids created] with 5 units of the X product.
assume that we received just 3 units of it. After confirming the transfer. a line of pack_operation_ids will be created with the transferred qty '3' and the stock move will be updated from 5 to 3 and a new picking will be created with the remaining qty '2'.
For the new picking that with move with 2 qty. Assume we do a transfer with splitting 'we tracking by lot/serial for example'. So we split the 2 qty into to serials; so after confirmation the move will remain the same 'with 2 qty' and we have two lines of pack_operation_ids for our splitting.
Actually there is a link between the stock.moves and stock.pack.operations that implemented by the class stock_move_operation_link . So there may be several pack operations linked to one stock move. I think the stock operation used to enhance quantities computations. Also you can notice that in the picking printing the report will check if there is a pack_operation_ids if yes then it'll print them instead of move_lines ...
I know this may not be the perfect answer, and someone else can illustrate it with more information.
But I hope it can helps you to grasp a little bit .
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/15/16, 5:24 PM|
|Seen: 497 times|
|Last updated: 2/16/16, 5:46 AM|