related fields manipulation

Asked by namirister

hi
i have 2 object fields "make" and "model" in view to manage a fleet of cars.
When i want to put data of a car , i must select a make name, so the seconde fields must repopulate with the model name of the make ok my selection in fied 1 "make".

i can't do that with onchange event. so it will be fun if you anyone have a idea about this manipulation
regards.

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andrew (aes) said :
#1

You can see how openerp handles situations like this in the server openerp/addons/base/res/res_country.py file.

It should be easy for you to adapt the Country > State model to your Make > Model needs.

Can you help with this problem?

Provide an answer of your own, or ask namirister for more information if necessary.

To post a message you must log in.