How to solve column res_partner.<column> does not exist in Odoo?

As an example, 'reonp' is a nicely added in model, but when I tried to add a 'gradjanin', Odoo 10 raise an error

I was trying to restart the server


class komPartnerrReon(models.Model):
    _inherit = 'res.partner'

    reonp = fields.Many2one('kom.reon')
    gradjanin = fields.Boolean('Gradjanin', default=False) #There was an error after adding this line of code


  File "C:\odoo-10.0\odoo\", line 231, in execute
      res = self._obj.execute(query, params)
ProgrammingError: column res_partner.gradjanin does not exist
LINE 1:" as "parent_id","res_partner"."name" as "name","res_partn...

That's actually the classic error you get on extending model res.partner with new fields.

On starting the Odoo server, every modules python files will be "loaded" so ofcourse your new fields on res.partner, too. But that's only on python side or better on the application itself. Now trying to use the application or "loading something in Odoo's webclient" will then try to load data from database, where the new fields don't have the corresponding columns.

For example the login. On login Odoo will load the user, which is logging in. Model res.users inherits the whole model res.partner, so that Odoo is trying to load res.partner data from database. And boom the error.

It can also happen if already logged in. For example in a formular view of a model with chatter. The chatter loads followers, which are partners, so boom the error.

What can you do, to fix that?

Update the module on server start

with parameter -u (and if more than one database in the system with -d)

odoo -c <path_to_config> -u my_module -d my_database

If that's not possible,

for example in productive systems or because Odoo is started as service, try to start a second instance which will just update the module and stop after that immediately.

odoo -c <path_to_config> -u my_module -d my_database --max-cron-threads=0 --stop-after-init --no-xmlrpc

That's like a "self-destroying" headless Odoo instance. The parameter --no-xmlrpc will be --no-http in Odoo V11+.

Tell Odoo in the database to update a module/app.

UPDATE ir_module_module set state = 'to upgrade' where name = 'my_module';

After that just restart Odoo.

Or the tricky way:

Just go into the Apps menu and open your module/app. Restart Odoo and update the module/app. That's the fastest way, but you guess it, you will sometimes forget to do it. And it's only working before you get the error ;-)

column res_partner.instructor does not exist i was trying to , Hi everyone here i need the solution in this error ProgrammingError: column res_partner.instructor does not exist i was trying to inherit  Let’s dive in! We have a list of values in column B and our output in column C. If we wrote out the process it would look like, Set total spend to the value in B10. Solve the model. Place the output in C10. Choose next B value. Set the output in the C row. Repeat steps 2-5 for all values in B. Starting the loop

Before that add depends on manifest for res.partner.

'depends': ['base'],

And update the module. Try again !

Odoo 11.0 How let res.partner about module tutorial being usable , I had the same problem: "column res_partner.instructor does not exist" I can solve this error by adding: Partner() at the end of the above code models/ To solve two step algebraic equations with a variable on 1 side, start by using addition or subtraction to isolate the variable term. For example, if the equation is 4x + 7 = 15, isolate 4x by subtracting 7 from both sides, so that the equation becomes 4x = 8. Next, divide 4x by the number in front of the variable, so that you are left with only x.

I suggest to add it manually to 'res_partner' using this SQL query :

ALTER TABLE res_partner 
    ADD COLUMN gradjanin BOOLEAN;

You face this problem with 'res_users' too, and you don't need to restart the service.

ProgrammingError: column res_partner.image does not exist · Issue , "ean13",res_partner."color",res_partne ^ Can you please help me solve it? Thanks in advance. You need to implement the Access-Control-Allow-Origin response header on the third-party server where the external script is coming from. How and where to add the HTTP header depends on the type of the third-party server.

Adding a field to the res.partner model prevents login and module , Create a custom module; Extend the res.partner model using Odoo's solution, there is a documentation improvement in here somewhere. params) ProgrammingError: column does not exist LINE 1: . Hi, There are 2 tables. Table 1 has 10 entries and Table 2 has 100 entries. Both tables have a common column. 'A' How can I filter Table 2 with the 10 entries I have in Table 1? I need a delegation warning free formula because my records can cross the 2000 mark. Following is my current formula w

Odoo column does not exist, Similar problems exist for “Row ID” columns or large binary items (e. So column added was : ALTER TABLE res_partner ADD COLUMN state_id integer;​  Directions for Students: Partner A solves only the equations in column A. Partner B solves only the equations in column B. After solving each equation, compare your answers. Even though the equations are different, the solutions will be the same. If you agree on the solution, write it in the solution box.

Impossible to connect when a field is added in res.partner, Hello, 'res.users' is not a _inherits of 'res.partner', this change brought the following openerp.sql_db: Programming error: column does not exist Solved by: Guewen Baconnier @ Camptocamp. Hello, Do you know how to use the VALUES function with filter? I want to get one unique column by VALUES function, and this column also should base on another column condition according to the SELECTEDVALUE? such as Column A, B I want to get the VALUES(column A which column B=SELECTEDVALUE)

  • Please add the code and error inline instead of using an image.
  • You have to update the module
  • @khelilimiliana This is internal server error, can not update the model
  • @CZoellner Please tell me if I need to add more details, I am new in the this community
  • I suggest to add it manually to 'res_partner' using sql querry ALTER TABLE res_partner ADD COLUMN gradjanin BOOLEAN;
  • hahaha thanks a lot, actually i use 'tricky way' I put '#gradjanin' and restarted the server, opened the Apps menu, my_module, and then deleted '#', restarted the server again and updated it. Thanks to you, I understand why the error raise Thank you @CZoeller
  • That is possible, too, but i would use this solution as last possibility.