Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Producție
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

TypeError: this.fields[item.fieldName] is undefined

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
typeerror
2 Răspunsuri
14737 Vizualizări
Imagine profil
Jason Wong

I was unable to open the timesheet app. If user tries to enter the timesheet menu, below error occurs and the entire screen is unresponsive. I suspect that it might be due to me removing some custom fields last night... How can I fix this? Any help will be greatly appreciated!!


Traceback:


Error:
TypeError: this.fields[item.fieldName] is undefined

https://packsmart.odoo.com/web/content/17726-dc6a184/web.assets_backend.js:1011
Traceback:
_prepareItem@https://packsmart.odoo.com/web/content/17726-dc6a184/web.assets_backend.js:1011:264
OdooClass.extend/</prototype[name]</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:3538:488
_.forEach@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:12:566
init@https://packsmart.odoo.com/web/content/17726-dc6a184/web.assets_backend.js:1009:1283
OdooClass.extend/</prototype[name]</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:3538:488
Class@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:3539:65
_createGroupByMenu@https://packsmart.odoo.com/web/content/17726-dc6a184/web.assets_backend.js:926:221
start/<@https://packsmart.odoo.com/web/content/17726-dc6a184/web.assets_backend.js:899:448
then/</</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:681
fire@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:796:299
add@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:797:471
then/</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:649
each@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:625:767
then/<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:560
Deferred@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:803:194
then@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:525
start@https://packsmart.odoo.com/web/content/17726-dc6a184/web.assets_backend.js:899:62
_widgetRenderAndInsert/<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:3684:52
then/</</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:681
fire@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:796:299
add@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:797:471
then/</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:649
each@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:625:767
then/<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:560
Deferred@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:803:194
then@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:525
_widgetRenderAndInsert@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:3683:165
appendTo@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:3674:97
_createSearchView@https://packsmart.odoo.com/web/content/17726-dc6a184/web.assets_backend.js:495:365
_executeWindowAction/<@https://packsmart.odoo.com/web/content/17726-dc6a184/web.assets_backend.js:502:49
then/</</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:681
fire@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:796:299
fireWith@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:803:56
then/</</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:681
fire@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:796:299
fireWith@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:803:56
then/</</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:681
fire@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:796:299
fireWith@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:801:202
then/</</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:874
fire@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:796:299
fireWith@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:801:202
Deferred/</deferred[tuple[0]]@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:803:56
genericJsonRpc/<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:3558:10
then/</</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:681
fire@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:796:299
fireWith@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:801:202
then/</</<@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:802:874
fire@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:796:299
fireWith@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:801:202
done@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:1192:95
callback@https://packsmart.odoo.com/web/content/12313-a638e87/web.assets_common.js:1212:23

------------------------------------------------------------------------------------

I am not fluent in js,but I opened the web debuger and the error seems to happen here:

/* /web/static/src/js/views/search/groupby_menu.js defined in bundle 'web.assets_backend' */
odoo.define('web.GroupByMenu',function(require){"use strict";var config=require('web.config');var core=require('web.core');var DropdownMenu=require('web.DropdownMenu');var QWeb=core.qweb;var _t=core._t;var GROUPABLE_TYPES=['many2one','char','boolean','selection','date','datetime'];var DEFAULT_INTERVAL='month';var GroupByMenu=DropdownMenu.extend({events:_.extend({},DropdownMenu.prototype.events,{'click .o_add_custom_group':'_onAddCustomGroupClick','click button.o_apply_group':'_onButtonApplyClick','click .o_group_selector':'_onGroupSelectorClick',}),init:function(parent,groupbys,fields,options){var self=this;this.fields=fields;this.generatorMenuIsOpen=false;this.intervalOptions=[{description:_t('Day'),optionId:'day',groupId:1},{description:_t('Week'),optionId:'week',groupId:1},{description:_t('Month'),optionId:'month',groupId:1},{description:_t('Quarter'),optionId:'quarter',groupId:1},{description:_t('Year'),optionId:'year',groupId:1},];this.defaultOptionId=DEFAULT_INTERVAL;this.groupableFields=[];_.each(fields,function(field,name){if(field.sortable&&_.contains(GROUPABLE_TYPES,field.type)){self.groupableFields.push(_.extend({},field,{name:name,isDate:_.contains(['date','datetime'],field.type),}));}});this.groupableFields=_.sortBy(this.groupableFields,'string');_.each(groupbys,this._prepareItem.bind(this));this.presentedFields=_.filter(this.groupableFields,function(field){var groupByFields=_.pluck(groupbys,'fieldName');return!_.contains(groupByFields,field.name);});this.isMobile=config.device.isMobile;var style;if(options&&options.headerStyle==='primary'){style={el:{class:'btn-group o_graph_groupbys_menu o_dropdown',attrs:{'role':'group'}},mainButton:{class:'btn btn-primary dropdown-toggle'},};}
var dropdownHeader={category:'groupByCategory',title:_t('Group By'),icon:'fa fa-bars',symbol:this.isMobile?'fa fa-chevron-right float-right mt4':false,style:style,};this._super(parent,dropdownHeader,groupbys,options);},start:function(){this._super.apply(this,arguments);this.$menu.addClass('o_group_by_menu');var $generatorMenu=QWeb.render('GroupbyMenuGenerator',{widget:this});this.$menu.append($generatorMenu);this.$addCustomGroup=this.$menu.find('.o_add_custom_group');},_addGroupby:function(fieldName){var field=_.findWhere(this.groupableFields,{name:fieldName});var groupbyName=_.uniqueId('__groupby__');var groupby={itemId:groupbyName,description:field.string,fieldName:fieldName,groupId:_.uniqueId('__group__'),isActive:true,};var eventData=_.clone(groupby);this._prepareItem(groupby);if(groupby.hasOptions){groupby.defaultOptionId=DEFAULT_INTERVAL;groupby.currentOptionId=DEFAULT_INTERVAL;groupby.isDate=true;eventData.optionId=groupby.currentOptionId;eventData.isDate=true;}
this.items.push(groupby);var fieldIndex=this.presentedFields.indexOf(field);this.presentedFields.splice(fieldIndex,1);this._renderGeneratorMenu();this._renderMenuItems();this.trigger_up('new_groupby',eventData);},_prepareItem:function(item){if(_.contains(['date','datetime'],this.fields[item.fieldName].type)){item.options=this.intervalOptions;}
this._super.apply(this,arguments);},_renderGeneratorMenu:function(){this.$el.find('.o_generator_menu').remove();var $generatorMenu=QWeb.render('GroupbyMenuGenerator',{widget:this});this.$menu.append($generatorMenu);this.$addCustomGroup=this.$menu.find('.o_add_custom_group');this.$groupSelector=this.$menu.find('.o_group_selector');},_toggleCustomGroupMenu:function(){this.generatorMenuIsOpen=!this.generatorMenuIsOpen;this._renderGeneratorMenu();this.$addCustomGroup.attr('aria-expanded',this.generatorMenuIsOpen);if(this.generatorMenuIsOpen){this.$groupSelector.focus();}},_onAddCustomGroupClick:function(event){event.preventDefault();event.stopPropagation();this._toggleCustomGroupMenu();},_onBootstrapClose:function(){this._super.apply(this,arguments);this.generatorMenuIsOpen=false;this._renderGeneratorMenu();},_onButtonApplyClick:function(event){event.stopPropagation();var fieldName=this.$groupSelector.val();this._addGroupby(fieldName);this._toggleCustomGroupMenu();},_onGroupSelectorClick:function(event){event.stopPropagation();},});return GroupByMenu;});;


0
Imagine profil
Abandonează
Imagine profil
Jason Wong
Autor Cel mai bun răspuns

Nevermind I figured it out!

For those who runs into the similar issue as I do...  Check the browser's console / debugger and try to trace back which file crashed - in my case a file called "groupby.js" so I know something is wrong in the search view. Turns out I had some studio customization there referring to a custom field I deleted.

0
Imagine profil
Abandonează
Imagine profil
Andreas A
Cel mai bun răspuns

Hi!

I got the same problem with model 'hr.resume.line' thanks for the insight!

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
TypeError: this._tables.difference is not a function
typeerror
Imagine profil
0
iul. 25
3
TypeError: this.widget.active_view is null
typeerror
Imagine profil
Imagine profil
2
aug. 18
5242
implementing basic working owl.carousel.js in odoo results in "Uncaught TypeError: elem[type] is not a function"
typeerror
Imagine profil
0
apr. 16
10014
Why can't I add a product or contact in the demo?
typeerror
Imagine profil
1
mar. 15
4066
type error unsupported operand types (s) Rezolvat
typeerror
Imagine profil
Imagine profil
Imagine profil
2
ian. 24
17919
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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