Skip to Content
Odoo Menu
  • Prijavi
  • Try it free
  • Aplikacije
    Finance
    • Knjigovodstvo
    • Obračun
    • Stroški
    • Spreadsheet (BI)
    • Dokumenti
    • Podpisovanje
    Prodaja
    • CRM
    • Prodaja
    • POS Shop
    • POS Restaurant
    • Naročnine
    • Najem
    Spletne strani
    • Website Builder
    • Spletna trgovina
    • Blog
    • Forum
    • Pogovor v živo
    • eUčenje
    Dobavna veriga
    • Zaloga
    • Proizvodnja
    • PLM
    • Nabava
    • Vzdrževanje
    • Kakovost
    Kadri
    • Kadri
    • Kadrovanje
    • Odsotnost
    • Ocenjevanja
    • Priporočila
    • Vozni park
    Marketing
    • Družbeno Trženje
    • Email Marketing
    • SMS Marketing
    • Dogodki
    • Avtomatizacija trženja
    • Ankete
    Storitve
    • Projekt
    • Časovnice
    • Storitve na terenu
    • Služba za pomoč
    • Načrtovanje
    • Termini
    Produktivnost
    • Razprave
    • Odobritve
    • IoT
    • Voip
    • Znanje
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industrije
    Trgovina na drobno
    • Book Store
    • Trgovina z oblačili
    • Trgovina s pohištvom
    • Grocery Store
    • Trgovina s strojno opremo računalnikov
    • Trgovina z igračami
    Food & Hospitality
    • Bar and Pub
    • Restavracija
    • Hitra hrana
    • Guest House
    • Beverage Distributor
    • Hotel
    Nepremičnine
    • Real Estate Agency
    • Arhitekturno podjetje
    • Gradbeništvo
    • Estate Management
    • Vrtnarjenje
    • Združenje lastnikov nepremičnin
    Svetovanje
    • Računovodsko podjetje
    • Odoo Partner
    • Marketinška agencija
    • Law firm
    • Pridobivanje talentov
    • Audit & Certification
    Proizvodnja
    • Tekstil
    • Metal
    • Pohištvo
    • Hrana
    • Brewery
    • Poslovna darila
    Health & Fitness
    • Športni klub
    • Trgovina z očali
    • Fitnes center
    • Wellness Practitioners
    • Lekarna
    • Frizerski salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Sistemi sončne energije
    • Izdelovalec čevljev
    • Čistilne storitve
    • HVAC Services
    Ostali
    • Neprofitna organizacija
    • Agencija za okolje
    • Najem oglasnih panojev
    • Fotografija
    • Najem koles
    • Prodajalec programske opreme
    Browse all Industries
  • Skupnost
    Learn
    • Tutorials
    • Dokumentacija
    • Certifikati
    • Šolanje
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Prenesi
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Dogodki
    • Prevodi
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Sklici kupca
    • Podpora
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Določanje cen
  • Pomoč

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Knjigovodstvo
  • Zaloga
  • PoS
  • Projekt
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Ključne besede (View all)
odoo accounting v14 pos v15
About this forum
Pomoč

Hi everyone here i need the solution in this error ProgrammingError: column res_partner.instructor does not exist i was trying to inherit res.partner in my custom module

Naroči se

Get notified when there's activity on this post

This question has been flagged
3 Odgovori
23792 Prikazi
Avatar
Stephen Ngailo

Traceback (most recent call last):

File "/home/stephen/odoo/odoo11.0/odoo/addons/base/ir/ir_cron.py", line 222, in _process_jobs

registry[cls._name]._process_job(job_cr, job, lock_cr)

File "/home/stephen/odoo/odoo11.0/odoo/addons/base/ir/ir_cron.py", line 128, in _process_job

now = fields.Datetime.context_timestamp(cron, datetime.now())

File "/home/stephen/odoo/odoo11.0/odoo/fields.py", line 1584, in context_timestamp

tz_name = record._context.get('tz') or record.env.user.tz

File "/home/stephen/odoo/odoo11.0/odoo/fields.py", line 951, in __get__

self.determine_value(record)

File "/home/stephen/odoo/odoo11.0/odoo/fields.py", line 1062, in determine_value

self.compute_value(recs)

File "/home/stephen/odoo/odoo11.0/odoo/fields.py", line 1018, in compute_value

self._compute_value(records)

File "/home/stephen/odoo/odoo11.0/odoo/fields.py", line 1011, in _compute_value

self.compute(records)

File "/home/stephen/odoo/odoo11.0/odoo/fields.py", line 599, in _compute_related

record[self.name] = value[self.related_field.name]

File "/home/stephen/odoo/odoo11.0/odoo/models.py", line 4659, in __getitem__

return self._fields[key].__get__(self, type(self))

File "/home/stephen/odoo/odoo11.0/odoo/fields.py", line 951, in __get__

self.determine_value(record)

File "/home/stephen/odoo/odoo11.0/odoo/fields.py", line 1052, in determine_value

record._prefetch_field(self)

File "/home/stephen/odoo/odoo11.0/odoo/models.py", line 2565, in _prefetch_field

result = records.read([f.name for f in fs], load='_classic_write')

File "/home/stephen/odoo/odoo11.0/odoo/models.py", line 2509, in read

self._read_from_database(stored, inherited)

File "/home/stephen/odoo/odoo11.0/odoo/models.py", line 2628, in _read_from_database

cr.execute(query_str, params)

File "/home/stephen/odoo/odoo11.0/odoo/sql_db.py", line 155, in wrapper

return f(self, *args, **kwargs)

File "/home/stephen/odoo/odoo11.0/odoo/sql_db.py", line 232, in execute

res = self._obj.execute(query, params)

psycopg2.ProgrammingError: column res_partner.instructor does not exist

LINE 1: ...tner_country_id","res_partner"."color" as "color","res_partn...

^

0
Avatar
Opusti
Avatar
subbarao
Best Answer

There is a solution for this if instructor is custom field.

if you add any new fields to the res_company, res_partner, res_users tables you have to follow the following steps.

1) add new fields

2) open your custom module from the apps list

3) restart server, do immediate upgrade of custom module

Note : Here the problem is if you add any new fields to the res_company, res_partner, res_users tables every request it will check. If you upgrade after restart without any request it will work.

4
Avatar
Opusti
Balu Chandran

In Odoo.sh environment, there is no option to restart. How to handle the same case over there? (I don't to create as custom field from UI)

Avatar
Yenthe Van Ginneken (Mainframe Monkey)
Best Answer

Hi Stephen,

Your Odoo does not know the field "instructor" on the model "res.partner". Are you sure that your module inherits res.partner correctly, that you've added the field and that the module is installed? Your code should look something like this:

# -*- coding: utf-8 -*-

from odoo import api, exceptions, fields, models, _

class ResPartner(models.Model):

_inherit = 'res.partner'

instructor = fields.Char()

Don't forget to inherit the correct app in your manifest.py / __openerp__.py! You should have a dependency on the contacts app there too.

Regards,
Yenthe

0
Avatar
Opusti
Avatar
Ermin Trevisan
Best Answer

Again! Please use a short and concise title. A title is a title and a message body is a message body.

-4
Avatar
Opusti
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Prijavi
Community
  • Tutorials
  • Dokumentacija
  • Forum
Open Source
  • Prenesi
  • Github
  • Runbot
  • Prevodi
Services
  • Odoo.sh Hosting
  • Podpora
  • Nadgradnja
  • Custom Developments
  • Izobraževanje
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Sredstva blagovne znamke
  • Kontakt
  • Zaposlitve
  • Dogodki
  • Podcast
  • Blog
  • Stranke
  • Pravno • Zasebnost
  • Varnost
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now