Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    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
    Výroba
    • 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
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Help

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

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

Odoberať

Get notified when there's activity on this post

This question has been flagged
typeerror
2 Replies
14729 Zobrazenia
Avatar
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
Avatar
Zrušiť
Avatar
Jason Wong
Autor Best Answer

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
Avatar
Zrušiť
Avatar
Andreas A
Best Answer

Hi!

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

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
TypeError: this._tables.difference is not a function
typeerror
Avatar
0
júl 25
3
TypeError: this.widget.active_view is null
typeerror
Avatar
Avatar
2
aug 18
5236
implementing basic working owl.carousel.js in odoo results in "Uncaught TypeError: elem[type] is not a function"
typeerror
Avatar
0
apr 16
10008
Why can't I add a product or contact in the demo?
typeerror
Avatar
1
mar 15
4061
type error unsupported operand types (s) Solved
typeerror
Avatar
Avatar
Avatar
2
jan 24
17911
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 je sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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