Odoo Help


Add a custom fields in Project/Projects?

bogdan baltatu
on 10/15/13, 4:49 AM 1,629 views

Hello, I want to add a custom field in Create Project forms. My code is post below but it's wrong because my field dont appear.What is wrong?

<?xml version="1.0" encoding="utf-8"?>
    <record id="project_project_extend" model="ir.ui.view">
        <field name="name">project.project.extended</field>
        <field name="model">project.project</field>
        <field name="inherit_id" ref="project.edit_project"/>
        <field name="arch" type="xml">
            <field name="user_id" position="after">
                <field name="my_field"/>


Have you updated/installed the module in which you have written this code?

Hiral Patel (hip)
on 10/15/13, 5:16 AM

Yes with OpenERP server restart, log out, log in and update module. On update module there are no errors. In ir_ui_view my model doesn't appears.. :(

bogdan baltatu
on 10/15/13, 5:20 AM

I think you might have to check that you are inheriting the right view. The view you inherited exists in project.project but i think that might not be the one you require. Use the xpath to define the field location that might help too

on 10/15/13, 7:02 AM

I try with xpath with this syntax but doesn't work (<xpath expr='//field[@name="user_id"]' position='before'>) I want to add in forum with name 'project.project.form' and id='edit_project'. This form belongs 'project' module and are define in 'project_view.xml'.

bogdan baltatu
on 10/15/13, 7:12 AM

Give the rights of 'Technical Features' to the user which enable the menu 'Update module List' in 'Settings->Modules' menu. After this you can view your module in 'ir_module_module' object. Install your custom module. You can view your custom field after 'user_id'.

Hiral Patel (hip)
on 10/15/13, 7:15 AM

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: 10/15/13, 4:49 AM
Seen: 1629 times
Last updated: 3/16/15, 8:10 AM