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.


How do you inherit model and change field to (required = false), when the field is in many views??

John Baldwin
on 1/9/15, 10:22 AM 965 views

I'm trying to change the name field in the crm.lead model to not be required without changing in the actual crm model. I can't seem to inherit the model in .py only views in xml. I want to make changes to fields that appear in many views, yet are the same field in the .py file.

I've tried the docs, the web and this help forum and can't figure out what I'm doing wrong.

# -*- coding: utf-8 -*-
from openerp import models, fields, api

class MyCrm(models.Model):
    _inherit = 'crm.lead'
    name = fields.Char(required=False)
Thanks for any help!

What was the error?

Kazim Mirza
on 1/9/15, 10:36 AM

Nothing, I got it to work. Was not updating properly.

John Baldwin
on 1/18/15, 11:49 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

3 follower(s)


Asked: 1/9/15, 10:22 AM
Seen: 965 times
Last updated: 3/16/15, 8:10 AM