Odoo Help


field.related is not working ,Country name is not pop up when i select the destination please help

on 3/13/14, 2:43 AM 718 views

class Destination(osv.osv):

_name = 'destination.destination'
_description = 'destination.destination'

_columns = {

           'country':fields.related('destin_id','country',type="many2one",relation="res.country",string="Country", required=True),
           'noofnights':fields.integer('No:of Nights',required=False),


class Tourdestination(osv.osv):

_name = 'tour.destination'
_description = 'tour.destination'

_columns = {

         'name':fields.char('Destination Name', size=64, required=True, readonly=False),
           'code':fields.char('Code', size=64, required=True, readonly=False),
             'country':fields.many2one('res.country','Country', size=64, required=True, readonly=False)  


Related Fields output shows only after saving the record.

on 3/13/14, 3:33 AM

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 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

0 follower(s)


Asked: 3/13/14, 2:43 AM
Seen: 718 times
Last updated: 3/16/15, 8:10 AM