CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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.
About This Community
Odoo Training Center
|Asked: 1/10/16, 6:41 AM|
|Seen: 891 times|
|Last updated: 9/30/16, 3:22 PM|