Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3294 Widoki

I have more than one warehouse on my openERP installation, and I'm developing a module to display the existence of a product in all warehouses on the product view.

I have the xml view and a class that inherits the product.product class in stock module, I have a function field that uses the _product_available function to get the quantity for each warehouse (modifying the context so I can get it for all warehouses).

If I set the function that returns those values as char, it will display the information correctly, but in one line (If I use it just diplays that text and nothing happends if I use \n), so I though to return a dictionary, but there is not that field type and if I let the char function and return the dictionary it displays [object Object],

How would you display that dictionary in order to have one warehouse per line?

Thanks!

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
5
sie 24
46797
2
kwi 24
2613
3
cze 23
5961
2
cze 23
4823
3
mar 23
10402