List of products with their respective quantities per warehouse

It is possible to create a view that shows a list of products accompanied by all their quantities per warehouse?

Product WH 1 WH2 …
Product 1 3 0 …
Product 2 22 2 …

Yes, it may be possible but it’s not easy as you should generate a view with dynamic columns.

But this information is already available on the system. On the product you have a “Quantities by warehouse” relate which will show the quantities of this product for each warehouse.

Thanks.

It exists any implementation of dynamic columns or some examples?

There is not oficial module that uses dynamic columns.

But the idea is that you should override fields_view_get to generate the required field information on the client side and then make the serer return the correct data.

I saw overwrite that method fields_view_get in
https://bitbucket.org/nantic/trytond-babi/src/7dab2d1126b9591c13262f26045d918e73c2b67c/babi.py#lines-134