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

Trying to inherit res.partner in custom module

By
Paramita
on 3/14/16, 2:33 PM 441 views

I am trying to inherit res.partner module in my custom module and trying to add a simple integer field.

Here is my code

from opener import models,fields

class Associateaccounts_respartner(models,Model);

    _inherit='res.partner'

associate_count=fields.Integer(string='# of Associate')

and import my .py file to __init__.py

it is showing me this below error

ProgrammingError: column res_partner.associate_count does not exist

0
Paramita
On 3/14/16, 3:18 PM

Ok I got it. Its just a simple indentation problem

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

1 follower(s)

Stats

Asked: 3/14/16, 2:33 PM
Seen: 441 times
Last updated: 3/14/16, 3:18 PM