Odoo Help


Are these prints corrects ?

on 3/14/16, 5:41 AM 655 views

Hi, in Sale, when i'm on a quotation, I click to add an item, i choose my product in the list (and i display prints in my code).
But i'm wondering if those are good ? Because their values disturbs me and I'm wondering too if it should not rather display other thing


print "2) self.product_id =",self.product_id
print "3) donnee =",donnee


2) self.product_id = product.product(7328,)

3) donnee = product.product(product.product(7328,),)

Thanks in dvance.


Jusab Sida (jsi)

--Jusab Sida (jsi)--
| 2 2 5
Gandhinagar, India
--Jusab Sida (jsi)--

Jusab Sida (jsi)
On 3/14/16, 9:19 AM

Hello Tatorus,

JFI, Here you have already browsed record of the product(self.product_id).

You can access all the attributes of the product like for

sale price: self.product_id.list_price

name: self.product_id.name

No need to browse it again(donnee=self.env['product.product'].browse(self.product_id))

And for the same result of print, just put 'id' in your parameter 


Here donnee and self.product_id both are same

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/14/16, 5:41 AM
Seen: 655 times
Last updated: 3/16/16, 7:28 AM