Zum Inhalt springen
Odoo Menü
  • Anmelden
  • Jetzt gratis testen
  • Apps
    Finanzen
    • Buchhaltung
    • Rechnungsstellung
    • Spesenabrechnung
    • Tabellenkalkulation (BI)
    • Dokumente
    • E-Signatur
    Vertrieb
    • CRM
    • Vertrieb
    • Kassensystem – Shop
    • Kassensystem – Restaurant
    • Abonnements
    • Vermietung
    Websites
    • Website-Builder
    • E-Commerce
    • Blog
    • Forum
    • Livechat
    • E-Learning
    Lieferkette
    • Lager
    • Fertigung
    • PLM
    • Einkauf
    • Wartung
    • Qualität
    Personalwesen
    • Mitarbeiter
    • Personalbeschaffung
    • Abwesenheiten
    • Mitarbeiterbeurteilung
    • Personalempfehlungen
    • Fuhrpark
    Marketing
    • Social Marketing
    • E-Mail-Marketing
    • SMS-Marketing
    • Veranstaltungen
    • Marketing-Automatisierung
    • Umfragen
    Dienstleistungen
    • Projekte
    • Zeiterfassung
    • Außendienst
    • Kundendienst
    • Planung
    • Termine
    Produktivität
    • Dialog
    • Genehmigungen
    • IoT
    • VoIP
    • Wissensdatenbank
    • WhatsApp
    Apps von Drittanbietern Odoo Studio Odoo Cloud-Plattform
  • Branchen
    Einzelhandel
    • Buchladen
    • Kleidergeschäft
    • Möbelhaus
    • Lebensmittelgeschäft
    • Baumarkt
    • Spielwarengeschäft
    Essen & Gastgewerbe
    • Bar und Kneipe
    • Restaurant
    • Fast Food
    • Gästehaus
    • Getränkehändler
    • Hotel
    Immobilien
    • Immobilienagentur
    • Architekturbüro
    • Baugewerbe
    • Immobilienverwaltung
    • Gartenarbeit
    • Eigentümervereinigung
    Beratung
    • Buchhaltungsfirma
    • Odoo-Partner
    • Marketingagentur
    • Anwaltskanzlei
    • Talentakquise
    • Prüfung & Zertifizierung
    Fertigung
    • Textil
    • Metall
    • Möbel
    • Speisen
    • Brauerei
    • Firmengeschenke
    Gesundheit & Fitness
    • Sportklub
    • Brillengeschäft
    • Fitnessstudio
    • Therapeut
    • Apotheke
    • Friseursalon
    Handel
    • Handyman
    • IT-Hardware & -Support
    • Solarenergiesysteme
    • Schuster
    • Reinigungsdienstleistungen
    • HLK-Dienstleistungen
    Sonstiges
    • Gemeinnützige Organisation
    • Umweltschutzagentur
    • Plakatwandvermietung
    • Fotostudio
    • Fahrrad-Leasing
    • Software-Händler
    Alle Branchen ansehen
  • Community
    Lernen
    • Tutorials
    • Dokumentation
    • Zertifizierungen
    • Schulung
    • Blog
    • Podcast
    Bildung fördern
    • Bildungsprogramm
    • Scale-Up! Planspiel
    • Odoo besuchen
    Software anfragen
    • Herunterladen
    • Editionen vergleichen
    • Releases
    Zusammenarbeiten
    • Github
    • Forum
    • Veranstaltungen
    • Übersetzungen
    • Partner werden
    • Dienstleistungen für Partner
    • Buchhaltungsfirma registrieren
    Services anfragen
    • Partner finden
    • Buchhalter finden
    • Einen Experten treffen
    • Implementierungsservices
    • Kundenreferenzen
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Eine Demo erhalten
  • Preiskalkulation
  • Hilfe

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

  • CRM
  • e-Commerce
  • Buchhaltung
  • Lager
  • PoS
  • Projekte
  • MRP
All apps
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Sie müssen registriert sein, um mit der Community zu interagieren.
Alle Beiträge Personen Abzeichen
Stichwörter (Alle anzeigen)
odoo accounting v14 pos v15
Über dieses Forum
Hilfe

AttributeError: 'NoneType' object has no attribute '_fields'

Abonnieren

Erhalten Sie eine Benachrichtigung, wenn es eine Aktivität zu diesem Beitrag gibt

Diese Frage wurde gekennzeichnet
odoo11odoo-11odoov11
8355 Ansichten
Avatar
Anastasiia Churyk

Hi!

I have this problem when trying to install my module.

Here is my model file:

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

_logger = logging.getLogger(__name__)

class HrEmployee(models.Model):
    _inherit = 'hr.employee'
    address_home_id = fields.Char(string='Home Address')

During the installation there is an error:

Error:

Odoo Server Error

Traceback (most recent call last):

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/http.py", line 647, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/http.py", line 307, in _handle_exception

raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/tools/pycompat.py", line 87, in reraise

raise value

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/http.py", line 689, in dispatch

result = self._call_function(**self.params)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/http.py", line 339, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/service/model.py", line 97, in wrapper

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

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/http.py", line 332, in checked_call

result = self.endpoint(*a, **kw)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/http.py", line 933, in __call__

return self.method(*args, **kw)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/http.py", line 512, in response_wrap

response = f(*args, **kw)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/addons/web/controllers/main.py", line 934, in call_button

action = self._call_kw(model, method, args, {})

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/addons/web/controllers/main.py", line 922, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/api.py", line 689, in call_kw

return call_kw_multi(method, model, args, kwargs)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/api.py", line 680, in call_kw_multi

result = method(recs, *args, **kwargs)

File "<decorator-gen-40>", line 2, in button_immediate_install

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/addons/base/module/module.py", line 71, in check_and_log

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

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/addons/base/module/module.py", line 448, in button_immediate_install

return self._button_immediate_function(type(self).button_install)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/addons/base/module/module.py", line 541, in _button_immediate_function

modules.registry.Registry.new(self._cr.dbname, update_module=True)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/modules/registry.py", line 85, in new

odoo.modules.load_modules(registry._db, force_demo, status, update_module)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/modules/loading.py", line 343, in load_modules

loaded_modules, update_module)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/modules/loading.py", line 242, in load_marked_modules

loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/modules/loading.py", line 134, in load_module_graph

registry.setup_models(cr)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/modules/registry.py", line 282, in setup_models

model._setup_complete()

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/models.py", line 2382, in _setup_complete

field.setup_triggers(self)

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/fields.py", line 685, in setup_triggers

for model, field, path in self.resolve_deps(model):

File "/home/bytebrand/Production/Bytebrand-11/odoo-11.0/odoo/fields.py", line 663, in resolve_deps

field = model._fields[fname]

AttributeError: 'NoneType' object has no attribute '_fields'

0
Avatar
Verwerfen
Anastasiia Churyk
Autor

There is a problem with inheritance. I am trying to change field type from Many2one to Char.

Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!

Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!

Registrieren
Verknüpfte Beiträge Antworten Ansichten Aktivität
How to change amount decimal digit numbers based on another field record
odoo11 odoo-11 odoov11
Avatar
0
Mai 23
3101
AttributeError: 'NoneType' object has no attribute '_fields'
odoo odoo11 odoo-11 odoov11
Avatar
0
Feb. 18
6380
Social Media buttons in Odoo 11 Gelöst
social_network odoo11 odoov11
Avatar
Avatar
Avatar
2
Sept. 22
9459
Odoo Server Error - Unable to confirm Quotation
enterprise odoo11 odoov11
Avatar
Avatar
1
Mai 20
4597
Error when installing eCommerce Module - "mo_count" - Odoo 11 Enterprise Gelöst
ecommerce odoo11 odoov11
Avatar
Avatar
Avatar
2
Okt. 18
6854
Community
  • Tutorials
  • Dokumentation
  • Forum
Open Source
  • Herunterladen
  • Github
  • Runbot
  • Übersetzungen
Dienstleistungen
  • Odoo.sh-Hosting
  • Support
  • Upgrade
  • Individuelle Entwicklungen
  • Bildung
  • Buchhalter finden
  • Partner finden
  • Partner werden
Über uns
  • Unsere Firma
  • Markenwerte
  • Kontakt
  • Karriere
  • Veranstaltungen
  • Podcast
  • Blog
  • Kunden
  • Rechtliches • Datenschutz
  • Sicherheit
الْعَرَبيّة 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 ist eine Suite von Open-Source-Betriebsanwendungen, die alle Bedürfnisse Ihres Unternehmens abdecken: CRM, E-Commerce, Buchhaltung, Lager, Kassensystem, Projektmanagement etc.

Das einzigartige Wertversprechen von Odoo ist, dass es gleichzeitig sehr einfach zu bedienen und voll integriert ist.

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