hi, i would like to know how to combine between two models
i'm displaying products and i need to display their prices but they r not in the same model
this is the function i use to display the products' names:
Future auth() async { await client.authenticate(db, username, password); }
Future fetchProduct() async { await auth(); var product = await client.callKw({ 'model': 'product.template', 'method': 'search_read', 'args': [], 'kwargs': { 'context': {'lang': 'fr_FR', 'bin_size': true}, 'domain': [], 'fields': ['id', 'name', 'image_128'], 'limit': 80, }, }); print(product); return (product); }
String buildListItem(BuildContext context, dynamic data) { // Assuming the image URL is available in the 'image' field of the product data return data.toString(); }