I am trying to deploy a custom module which relates certain fields from order to stock.picking.
I was about to use sale_id relation in stock_picking,and I just realized that sale_id is not in stock_picking table.
I checked sale_stock installation, it seems to be properly installed but the field is not there.
Is there any known issue with sale_stock in Odoo v8?
You are right. There is a field given named "sale_id" in the module. If you go to stock_picking table in the database, you won't see sale_id field.
The reason is that, the field is a function (auto compute) field and is not stored (store=True/False) into the database picking table. That is why you can't use this field in database query but you can access the function field using browse, read method.
Hope this will help you.
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
|Asked: 1/10/16, 6:41 AM|
|Seen: 473 times|
|Last updated: 9/30/16, 3:22 PM|