Odoo Help


How to remove internal reference from product description

on 7/7/15, 3:34 PM 1,214 views

Is there a way of removing the internal reference shown in product descriptions? So just to display product name and not the internal reference?


Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 7/8/15, 7:42 AM


Technically, its name_get() method you have to override().


Geoff Kimpton
On 9/11/15, 10:59 AM

Did you want to remove the internal reference shown in individual product descriptions?  If so it is the "Internal Reference" box shown below.  Highlight text > Delete > Save.

If you want to remove the actual field then sorry, I dont know.


Ankit H Gandhi(AHG)

--Ankit H Gandhi(AHG)--
| 5 4 6
Rajkot, India
--Ankit H Gandhi(AHG)--

Learning Python..

Ankit H Gandhi(AHG)
On 7/26/15, 7:25 AM

Dear Chirag,

Yes, @Serpent Consulting Services is right you need to override the name_get method like this 

class product_product(osv.Model):

        _inherit = 'product.product'

        def name_get(self, cr, uid, ids, context={}):

            res = []

            if context is None:

                context = {}

            if isinstance(ids, (int, long)):

                ids = [ids]

            if not len(ids):

                return []

            for product in self.browse(cr, uid, ids,context=context):

                res.append((product.id, product.name))

            return res

Hope this code may be help full


Ankit H Gandhi

On 7/8/15, 5:08 PM

How do I go about doing that?

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: 7/7/15, 3:34 PM
Seen: 1214 times
Last updated: 9/11/15, 10:59 AM