Odoo Help

0

Trying to inherit res.partner in custom module

By
Paramita
on 3/14/16, 2:33 PM 774 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

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.

Register

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

1 follower(s)

Stats

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