OpenERP 7: How can I add a listview with stock locations in product form view - odoo

how can I add a listview with the stock locations of the product in product form view. Or maybe somebody knows a function that returns the stock location ids of an given product?
Thank you.

In openerp no such king of function to give ids of product location.
But in openerp function to get how much product available in this location.
If want to get location ids of give product then you have to make your own functions.

Related

Dependent filters in Webi report

I've created a webi report which displays a graph of Total revenue per day, Date is on X axis and Rev is on Y axis.
I've a requirement where the client wants to see it category and sub category wise in the same graph. I've used Filter Bar option and dragged Category. This works fine and displays the revenue for the selected category on a daily basis.
Now I added another filter Sub-Category which should display only the list of sub-categories associated with the Category selected but in turn displays all sub-categories irrespective of the category selected.
Is there a way to link those two filters?
Thanks,
Vijay
Hopefully It might be helpful to someone just in case...
I've created a custom navigation path in my business layer and used it in my webI.
Thanks,
Vijay
You can create another report sub_report to collect all categories and sub categories
Then you add this sub_report to master report by insert sub_report.

How do I change the purchase quantity on my bigcartel shop to be a text box

I sell fabric by the 10cm increment. How do I change the purchase quantity on my bigcartel shop to be a text box to allow customer to type in the quantity they'd like to buy (for example 1.2 metres) instead of using bigcartel's dropdown purchase quantities?
At the moment, I end up having a long list of drop down options ie. 10cm, 20cm, 30cm, 40cm, 50cm, 60cm, 70cm, 80cm, 90cm, 1m. And then I have to rely on the customer adding the quantities they want together to get the total they need (ie. 20cm and 1m to get 1.2 metres). People sometimes make a mistake with their math and order the wrong amount. I would prefer to be able to just have a text box in the purchase quantity area where my customer could simply type in "1.2" and the quantity and price would be calculated for the cart.
Is this possible on bigcartel? I know it is possible on a lot of other e-commerce sites. Any help would be greatly appreciated!
Unfortunately there's not a way to add an input box to your product or cart pages to allow for customer input like that, sorry! Your customers can only select their option from a list that you create in the admin.

Only show in stock products OpenERP

When I open the location structure of the warehouse and check the current inventory of a particular location, it shows me all products (even when stock is 0).
Is there a way to hide the products that are not in stock in that particular location (or remove them from being able to show in that location)?
To achieve this functionality, you have to customize addons side code of stock and product,
You have to implement funt_search method in qty_available function of product, to search product based on codition.
And in the wizard you have to pass domain, of qty_avalable > 0 at wizard,.
For refrence you can see in openerp latest trunk stock module code.
Hope this help

Calculate available inventory in OpenERP

I am developing a custom module for OpenERP 7 that will track hardware installed in various venues. I have the total stock levels recorded in the Warehouse module, but I want to be able to calculate and display amount of each product that is available and the amount that is currently deployed. I'm having trouble figuring out how to do this. I have been looking at this rent module and they seem to do something with stock picking and workflows, but I'm new to OpenERP and not really sure how that works.
The other way I was thinking of was to loop through the deployments and simply calculate the amount of each item, and use functional fields to display it, but I'm not sure if that would even work, or how to do it without hard-coding all the various items.
Have a look at product.py in the stock module, specifically the get_product_available method. This allows you to pack various filter parameters into the context and then it calculates and returns stock as the net of inbound and outbound stock moves.
This method also gets used in the functional fields qty_available, virtual_available, incoming_qty and outgoing_qty. There is reasonably good explanations in the help comments in the module.
In OpenERP, something is in your stock when there's a stock move (object stock.move) with that product to your physical location as destination location, defined on Warehouse object for "Inventory Location" field. Let's say you have recorded 2 moves:
Move 1
Source Location: Supplier
Destination Location: Stock
Qty: 2
Move 2
Source Location: Stock
Destination Location: Deployed Products
Qty: 1
If you open your products list you'll see that you have 1qty of your product available. OpenERP sums all the moves for that product to and from your Stock location. So if you have no other specific needs, recording moves to some sort "Deployed Products" location should be enough.

Adding supplier name to product listing

Using OpenERP 7
I have a client that needs to see the supplier name (Just one if there are multiple suppliers) in the product listing. I've tried using related fields but can't seem to get the syntax right. Can anyone help me on this?
Its not possible to define related field to one2many, in the product object have one2many product.supplierinfo object, so if you want to get only one supplier name then define a function field to get supplier name