Odoo Help

Welcome!

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.

0

populating address fields in create customer form using custom model

By
Ahmed Sohaib Amjad
on 4/15/14, 2:47 PM 1,010 views

i'm new to openerp as well as python. i want to populate address fields in create customer form using my custom model which i created from openerp web client.

i have created a model named as x_res.postcode. this table contains the information regarding postcodes and their respective addresses. i also have created the custom form view for this model. and i have added a many2one field in res.partner.form. i'm getting value in many2one field in res.partner.form from x_res.postcode.

I want to populate the address in res.partner fields like street, street2, city town etc from the x_res.postcode model address fields.

please ask if i need to post anything to help my question understand

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)

Stats

Asked: 4/15/14, 2:47 PM
Seen: 1010 times
Last updated: 3/16/15, 8:10 AM