Custom field - project management

Asked by Anil on 2012-07-05

Hi Everyone,

I have successfully added few custom fields to project.project form view. One of it is project no. I want this number to be auto selected in the tasks related to the project.

I added many2one field "x_project_no" to project model, object relation: project.task , added the field to project.form view.
<field name="x_project_no" string="Project Number" select="1"/>
It shows up in the form and I can create new projects with this added field.

Now I want the Project no to be automatically selected for each of the tasks in project.task view.
I have created a many2one field in project.task model, object relation: project.project, added the field to project.task.form
"<field name="x_project_no" select="1" on_change="onchange_project(x_project_no)"/>"

When I go to the tasks form, list populated by
Project name not project numbers.
Can anyone guide me how to do this?
Any help is much appreciated.
Thanks,
Anil

ps: I already looked at https://answers.launchpad.net/openobject-server/+question/191527

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
2012-07-05
Last reply:
2012-07-15

Anil,

The onchange effect is only possible via a module.

Thanks.

Can you help with this problem?

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

To post a message you must log in.