Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

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

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
3 Răspunsuri
23805 Vizualizări
Imagine profil
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
Imagine profil
Abandonează
Imagine profil
subbarao
Cel mai bun răspuns

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
Imagine profil
Abandonează
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)

Imagine profil
Yenthe Van Ginneken (Mainframe Monkey)
Cel mai bun răspuns

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
Imagine profil
Abandonează
Imagine profil
Ermin Trevisan
Cel mai bun răspuns

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

-4
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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