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.
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: 7/15/13, 6:56 AM|
|Seen: 2670 times|
|Last updated: 3/16/15, 8:10 AM|