Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Artificial Intelligence
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Property Management
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

fields.selection not run

Subscriure's

Get notified when there's activity on this post

This question has been flagged
errorviewopenerpfield.selecion
2 Respostes
6264 Vistes
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
Descartar
Joaquin
Autor

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
Autor Best Answer

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
Descartar
Avatar
patrick
Best Answer

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
Descartar
Enjoying the discussion? Don't just read, join in!

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

Registrar-se
Related Posts Respostes Vistes Activitat
Error... I can't add call or other..
error openerp
Avatar
0
de març 15
5564
problems with opening modules
error openerp
Avatar
0
de març 15
4860
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
de des. 25
1060
Error: Field is restricted to the group(s) base.group_no_one in view definition Solved
error view odoo16features
Avatar
Avatar
Avatar
2
d’oct. 24
10318
ValidateError Une erreur est apparue lors de la validation du/des champ(s) arch: Invalid XML for View Architecture! Solved
error view validateerror
Avatar
Avatar
2
de gen. 24
17174
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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