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

fields.selection not run

S'inscrire

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

Cette question a été signalée
errorviewopenerpfield.selecion
2 Réponses
6255 Vues
Avatar
Joaquin

I have a definition in my custom module:
'colFechaLlegada':fields.selection(_get_alfabet,'Fecha de Llegada', size=3, readonly=False),

And i have the defiition of funcion:
def _get_alfabet(self, cr, uid, context=None):
cCols = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
numero = 25
return [(str(r+1), cCols[r:r+1]) for r in range(numero+1)]

I upgrade my module and i have this error:

OpenERP-Client Version : 6.1.1
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
File "c:\Work\OE7\Server\server.\openerp\wsgi\core.py", line 79, in xmlrpc_return
File "c:\Work\OE7\Server\server.\openerp\netsvc.py", line 360, in dispatch_rpc
File "c:\Work\OE7\Server\server.\openerp\service\web_services.py", line 586, in dispatch
File "c:\Work\OE7\Server\server.\openerp\osv\osv.py", line 129, in wrapper
File "c:\Work\OE7\Server\server.\openerp\osv\osv.py", line 195, in execute
File "c:\Work\OE7\Server\server.\openerp\osv\osv.py", line 183, in execute_cr
File "c:\Work\OE7\Server\server.\openerp\osv\orm.py", line 2153, in fields_view_get
File "c:\Work\OE7\Server\server.\openerp\osv\orm.py", line 1793, in __view_look_dom_arch
File "c:\Work\OE7\Server\server.\openerp\osv\orm.py", line 1742, in __view_look_dom
File "c:\Work\OE7\Server\server.\openerp\osv\orm.py", line 1742, in __view_look_dom File "c:\Work\OE7\Server\server.\openerp\osv\orm.py", line 1742, in __view_look_dom File "c:\Work\OE7\Server\server.\openerp\osv\orm.py", line 1684, in __view_look_dom AttributeError: 'NoneType' object has no attribute '_name_search'

Any can i help me please?

1
Avatar
Ignorer
Joaquin
Auteur

Solved the problem. There was an error in: colspan="1" widget="selection" name="colFechaLlegada" context="{'colFechaLlegada': <field self}"/> The Widget was wrong, and should look like: colspan="1" widget="colFechaLlegada" name="colFechaLlegada" context="{'colFechaLlegada': <field self}"/> Thanks for the help and collaboration.

Avatar
Joaquin
Auteur Meilleure réponse

Hello.
Thanks for the reply.
That error comes always in the GTK.
Only upgrade my module.
It is an error in the function or access or the time to declare the SELECTED. If I replace the one FIELD.CHAR FIELD.SELECTEDpor, no problem since no functions are called. I'm in a SERVER OpenERP 6.1, and client is 6.1.1 GTK

0
Avatar
Ignorer
Avatar
patrick
Meilleure réponse

In your stacktrace I see 6.1.1 and 7.0. So it looks like there is a mix up, either because of an upgrade by you, or somehow upstream (the Bazaar location, given the line: Last revision No. & ID :Bazaar Package not Found !)

Did you do an upgrade of OpenERP, or just your module?

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é
Error... I can't add call or other..
error openerp
Avatar
0
mars 15
5547
problems with opening modules
error openerp
Avatar
0
mars 15
4855
How to find this view in odoo18 from frontend, I need the related steps(navigation)? I am a beginner, I need simply explanation
error treeview view
Avatar
Avatar
Avatar
3
déc. 25
1044
Error: Field is restricted to the group(s) base.group_no_one in view definition Résolu
error view odoo16features
Avatar
Avatar
Avatar
2
oct. 24
10295
ValidateError Une erreur est apparue lors de la validation du/des champ(s) arch: Invalid XML for View Architecture! Résolu
error view validateerror
Avatar
Avatar
2
janv. 24
17161
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