Skip to Content
Menu
This question has been flagged
1 Reply
5694 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

Avatar
Discard
Author Best Answer

Ok I got it. Its just a simple indentation problem

Avatar
Discard
Related Posts Replies Views Activity
2
Oct 23
3953
3
Sep 23
1002
0
May 23
1446
1
May 23
925
1
Apr 23
807