Skip to content

Commit c741402

Browse files
committed
fix add link to docs
1 parent 66ae592 commit c741402

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Helper/Odoo.php

+2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,14 @@ public function getProduct($prod_id)
4747
$product = $this->models->execute_kw($this->db, $this->uid, $this->api_key,
4848
'product.product', 'search_read',
4949
array(array(array('id', '=', $prod_id))),
50+
// fields @link https://github.com/NexaMerchant/OdooClient/blob/main/docs/product.product.txt
5051
array('fields'=> array('name', 'list_price', 'description', 'product_tmpl_id', 'product_variant_ids'), 'limit'=>1)
5152
);
5253
// products variable is an array of products
5354
$product = $product[0];
5455

5556
// get products options
57+
// product.template.attribute.value @link https://github.com/NexaMerchant/OdooClient/blob/main/docs/product.template.attribute.value.txt
5658
$product['options'] = $this->models->execute_kw($this->db, $this->uid, $this->api_key,
5759
'product.template.attribute.value', 'search_read',
5860
array(array(array('product_tmpl_id', '=', $product['product_tmpl_id'][0]))),

0 commit comments

Comments
 (0)