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.


Country Dropdown, click "Create and Edit" show "format_address" field in Popup

Vincent Myo
on 6/5/13, 7:52 AM 1,473 views

Hello buddy, In my custom module, i used the country dropdown box. Model is following.

class building(orm.Model): _name = 'building.building' _columns = { 'name': fields.char('Building Name', size=128, required=True), 'oname': fields.char('Owner Name', size=128, required=True), 'cat':fields.char('Category', size=128), 'flor':fields.char('Floor', size=128), 'num':fields.char('Number', size=128, required=True), 'street': fields.char('Street', size=128), 'street2': fields.char('Street2', size=128), 'block_id': fields.many2one("res.township.block", 'Block'), 'township_id': fields.many2one("res.city.township", 'Township'), 'zip': fields.char('Zip', change_default=True, size=24), 'city_id': fields.many2one("res.state.city", 'City'), 'state_id': fields.many2one("res.country.state", 'State'), 'country_id': fields.many2one('res.country', 'Country'), 'country': fields.related('country_id', type='many2one', relation='res.country', string='Country', deprecated="This field will be removed as of OpenERP 7.1, use country_id instead"),

_defaults = {}


when i run the program, i click the Country drop downbox of Create and Edit fields. Show the follow picture. I don't know how to solve it.

Country Name : ----------------
Country Code : -------------------- Currency : ----------------

|--------------------------------------------------------------| |%(street)s | |%(street2)s | |%(city)s %(state_code)s %(zip)s | |%(country_name)s | |--------------------------------------------------------------|

Above Country name, Country code and Currency lines are showing the same in other modules. but my custom modules show the above.

Thank you.

Sorry for your time. Now i solved the problem.

Vincent Myo
on 6/8/13, 8:29 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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 6/5/13, 7:52 AM
Seen: 1473 times
Last updated: 3/16/15, 8:10 AM