Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Intelligence artificielle
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Supermarché
    • Quincaillerie
    • Magasin de jouets
    Restauration & Hôtellerie
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brasserie
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Commerce
    • Homme à tout faire
    • Matériel informatique & support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Parcourir toutes les industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenir partenaire
    • Services pour partenaires
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Unknown field in domain ...

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
viewsmodelsv15
1 Répondre
6056 Vues
Avatar
Josef Werner Schmid GmbH, Josef Schmid
I'm getting an "unknown field" error, eventhough the model does have the fields. 
What am i doing wrong?



Traceback (most recent call last): File "/Users/jgs/jgs/Coding/Projects/odoo15/odoo/odoo/http.py", line 643, in _handle_exception return super(JsonRequest, self)._handle_exception(exception) File "/Users/jgs/jgs/Coding/Projects/odoo15/odoo/odoo/http.py", line 301, in _handle_exception raise exception.with_traceback(None) from new_cause odoo.tools.convert.ParseError: while parsing /Users/jgs/jgs/Coding/Projects/odoo15/odoo/addons/rectanglemaps/views/create_order_views.xml:4 Fehler bei der Validierung der Ansicht nahe: Unbekanntes Feld "event.registration.event_booth_id" in domain of ([('event_id', '=', event_id), ('event_booth_id.halle_id', '=', halle_id)]) View error context: {'file': '/Users/jgs/jgs/Coding/Projects/odoo15/odoo/addons/rectanglemaps/views/create_order_views.xml', 'line': 8, 'name': 'rectanglemaps.order.wizard.form', 'view': ir.ui.view(2490,), 'view.model': 'rectanglemaps.order.wizard', 'view.parent': ir.ui.view(), 'xmlid': 'rectanglemaps_create_order_view_form'}


This is my code:

<record id="rectanglemaps_create_order_view_form" model="ir.ui.view">
<field name="name">rectanglemaps.order.wizard.formfield>
<
field name="model">rectanglemaps.order.wizardfield>
<
field name="arch" type="xml">
<form>
<group>
<group>
<field name="event_id" readonly="1"/>
group>
<
group>
<field name="event_registration_ids"
widget="many2many_tags"
domain="[('event_id', '=', event_id), ('event_booth_id.halle_id', '=', halle_id)]"/>
<
field name="plan" widget="image"/>
group>
group>
<
footer>
<button string="Anlegen" class="btn-primary" special="save"/>
<
button string="Abbrechen" class="btn-secondary" special="cancel"/>
footer>
form>
field>
record>


And this is the model:

# -*- coding: utf-8 -*-
from odoo import models, fields, api
from . import prepare_engine as rectanglemaps_engine


class EventBoothRegistration(models.Model):
_inherit = 'event.booth.registration'

plan = fields.Binary(string='Plan', attachment=True)

and EventBooth

class EventBooth(models.Model):
_inherit = 'event.booth'

name = fields.Char(string='Name', compute='_compute_name')
display_name = fields.Char(string="Anzeigename", compute='_compute_display_name', inverse='_inverse_display_name', store=True)

# Verbundene Halle
halle_id = fields.Many2one('rectanglemaps.halle', string='Halle')




thank you for you patience!

0
Avatar
Ignorer
Avatar
Mohammed Rageh
Meilleure réponse

you have to revise domain on m2m fields 
https://learnopenerp.blogspot.com/2018/12/add-domain-on-many2many-field-in-odoo.html

0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How to make a <tree> view that is editable="bottom" but also has a clickable link to the object? Résolu
views v15
Avatar
Avatar
Avatar
2
mars 23
21929
Viewing Field from another Model
views models
Avatar
Avatar
1
févr. 18
5093
Why not all model fields shown in defalt view?
views models
Avatar
Avatar
1
févr. 16
5273
Adjust View Order by Field
views models
Avatar
1
mars 15
5708
attributeerror '_unknown' object has no attribute 'id' odoo Résolu
models id v15
Avatar
Avatar
Avatar
Avatar
3
avr. 26
15508
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenir partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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