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 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
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: 1/10/16, 6:41 AM|
|Seen: 673 times|
|Last updated: 9/30/16, 3:22 PM|