Odoo Help


This community 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.


Are these prints corrects ?

on 3/14/16, 5:41 AM 270 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)--
Tiny ERP Pvt Ltd
| 2 1 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


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