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'm trying to create a 'related field' in the BOM object that points to the quantity on hand in the product.product object.
I then know how to add this related field from the BOM object to the BOM view so I can see how many of each part we've got in stock.
I'm just struggling to create the related field in the BOM object. I'm following this route as it was advised in the answer to Simons question "how to display the quantity on hand for each entry in a bill of materials".
I'm pretty new to OpenERP, python & protege, but am familiar with database structure & interrogation using MySQL & php.
Any help gratefully received!
First of all, you should make custom module
I have made custom module for you as per your requirement,
See Following Link,
'qty_available': fields.related('product_id','qty_available',type='float', size=64, relation="product.product", string="Quantity", store=True),
Hope It work for 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: 7/15/13, 6:56 AM|
|Seen: 4182 times|
|Last updated: 3/16/15, 8:10 AM|