Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Gastenverblijf
    • Drankenhandelaar
    • Hotel
    Vastgoed
    • Makelaarskantoor
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accountantskantoor
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textiel
    • Metaal
    • Meubels
    • Eten
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Zonne-energiesystemen
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC-diensten
    Andere
    • Non-profitorganisatie
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

Please solve this error

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
1 Beantwoorden
1675 Weergaven
Avatar
Esha Sabir

Error:

Odoo Server Error


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

    result = request.dispatch()

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 683, in dispatch

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 359, in _call_function

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

  File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 347, in checked_call

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 912, in __call__

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 531, in response_wrap

    response = f(*args, **kw)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1400, in call_kw

    return self._call_kw(model, method, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1392, in _call_kw

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

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 399, in call_kw

    result = _call_kw_multi(method, model, args, kwargs)

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 386, in _call_kw_multi

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

  File "/home/odoo/erp_cs360/live/edu_admissions/models/edu_admission.py", line 238, in write

    obj = super(campus_applicant, self).write(vals)

  File "/home/odoo/erp_cs360/live/ks_dashboard_ninja/models/ks_odoo_base.py", line 24, in write

    recs = super(Base, self).write(vals)

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3671, in write

    field.write(self, vals[fname])

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 3048, in write

    return self.write_batch([(records, value)])

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 3069, in write_batch

    return self.write_real(records_commands_list, create)

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 3245, in write_real

    flush()

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 3207, in flush

    comodel.create(to_create)

  File "", line 2, in create

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 329, in _model_create_single

    return self.browse().concat(*(create(self, vals) for vals in arg))

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 329, in

    return self.browse().concat(*(create(self, vals) for vals in arg))

  File "/home/odoo/erp_cs360/live/edu_academics/edu_academics.py", line 6416, in create

    return super(campus_parent_details, self).create(vals)

  File "", line 2, in create

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 347, in _model_create_multi

    return create(self, [arg])

  File "/home/odoo/erp_cs360/live/ks_dashboard_ninja/models/ks_odoo_base.py", line 9, in create

    recs = super(Base, self).create(vals_list)

  File "", line 2, in create

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 348, in _model_create_multi

    return create(self, arg)

  File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_fields.py", line 534, in create

    recs = super().create(vals_list)

  File "", line 2, in create

  File "/usr/lib/python3/dist-packages/odoo/api.py", line 348, in _model_create_multi

    return create(self, arg)

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3876, in create

    records = self._create(data_list)

  File "/usr/lib/python3/dist-packages/odoo/models.py", line 3948, in _create

    col_val = field.convert_to_column(val, self, stored)

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2404, in convert_to_column

    value = self.convert_to_cache(value, record)

  File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2416, in convert_to_cache

    raise ValueError("Wrong value for %s: %r" % (self, value))

Exception


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 639, in _handle_exception

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

  File "/usr/lib/python3/dist-packages/odoo/http.py", line 315, in _handle_exception

    raise exception.with_traceback(None) from new_cause

ValueError: Wrong value for campus.parent.details.contact_type: 'Regular'

0
Avatar
Annuleer
Avatar
Graeme Cameron
Beste antwoord

Hi,

I am an Odoo user, I don't know about code, but if I get an error like this I use chat GPT or other AI and enter the error text. Sometimes this helps me identify the issue, sometimes I have to contact my Odoo partner for support.   

Here is what it says about your error.

The error message indicates that there is a value error for the field campus.parent.details.contact_type with the value 'Regular'. It seems that the value 'Regular' is not allowed for the contact_type field in the campus.parent.details model.

Here are a few steps you can take to resolve this issue:

  1. Check Field Type: Make sure that the field contact_type in the model campus.parent.details is of the correct type. If it is supposed to be a selection field, verify that 'Regular' is one of the allowed values.
  2. Check Constraints: Review any constraints or validations that are applied to the contact_type field. If there are constraints that restrict the allowed values, ensure that 'Regular' is a valid value.
  3. Check Dependencies: If the campus.parent.details model has any dependencies or related models, check if there are constraints or validations in those models that might affect the contact_type field.
  4. Check Code: Review the code in the edu_academics.py file around line 6416 where the create method for the campus.parent.details model is defined. Look for any custom logic or constraints that might be causing the issue.
  5. Update Data: If the field contact_type is supposed to have a different value, you may need to update the data in your system to ensure that it conforms to the expected values.
  6. Review Recent Changes: If this issue started occurring after recent changes, review the changes that were made to the code, models, or data to identify any modifications that might have led to this error.
  7. Check Log Files: Check the Odoo server logs for any additional information or error messages that might provide more details about the issue.

Once you identify the cause of the error, you can take appropriate actions to fix the problem, such as updating the data, modifying the field definition, or adjusting constraints in your models.


0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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