Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Отримати демо
  • Ціни
  • Допомога

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

  • CRM
  • e-Commerce
  • Бухоблік
  • Склад
  • PoS
  • Проект
  • MRP
All apps
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

Uncaught TypeError: Cannot read property '1' of undefined

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
customersale
12 Відповіді
274571 Переглядів
Аватар
daouda

Hi guys, I am facing this problem when i am trying to create a new customer. Can you please help me correct this bug. Thanks in advance

3
Аватар
Відмінити
Jason Christensen

I am also getting this same error when creating a new product from the point of sale menu. When I create a new product from anywhere else (like purchase menu) I do not get this error.

It happens for all users for me.

I have tried setting defaults in debug mode but that doesn't seem to find this 'undefined ' field.

The only thing I might be able to attribute this to is deleting the others category from point of sale categories (but it recreates it automatically).

Аватар
Felipe
Найкраща відповідь

This error is because there is a property field in that model, on that form that doesn't have his generic value defined, probably someone delete it.

you should be getting this same error one time for every property with no generic value inside that form.

the model is the object, for example the partner 'res.partner'

What is a property field?

https://accounts.openerp.com/forum/Help-1/question/24622/

Where can I define the generic value?

first you need to know the property you are going define, to know that, get developer mode on that form and check for fields that begins with 'property', properties are usually accounts, in res.partner we also have the price-lists.

so lets say for example our property is 'property_account_receivable' from the partner object, which is a many2one field to the object account.account

now we go to settings --> parameters --> configuration parameters

we filter for generics and search for it, if there is no lines, then thats a problem and we need one.

so we create one with the name:'property_account_receivable', field: Account Receivable, type:many2one, resource:[no value], account.account, and the default account we would want to put.

4
Аватар
Відмінити
Ahmed Ghazi

Thank you so much. Your answer was helpful and I gave you a thumb up!

Аватар
Luiz C. Ferreira
Найкраща відповідь

Hi.

The solution is:

In the file /addons/web/static/src/js/view_form.js

Replace the lines:

if (! no_recurse) {
        var dataset = new instance.web.DataSetStatic(this, this.field.relation, self.build_context());
        this.alive(dataset.name_get([self.get("value")])).done(function(data) {
            self.display_value["" + self.get("value")] = data[0][1];
            self.render_value(true);
        });
    }

By:

if (! no_recurse) {
        var dataset = new instance.web.DataSetStatic(this, this.field.relation, self.build_context());
        this.alive(dataset.name_get([self.get("value")])).done(function(data) {
            if(typeof data[0] != "undefined" && data[0] != null && data[0].length > 0){
                self.display_value["" + self.get("value")] = data[0][1];
                self.render_value(true);
            }
            else {
               return false;
            }
        });

}
3
Аватар
Відмінити
Аватар
Omal Bastin
Найкраща відповідь

Usually this error comes when you try to pass an non existing id to a many2many/many2one field.

2
Аватар
Відмінити
Аватар
linehammer
Найкраща відповідь

This error occurs in Chrome Browser when you read a property or call a method on an undefined object . Uncaught TypeError: Cannot read property of undefined error is probably easiest to understand from the perspective of undefined, since undefined is not considered an object type at all (but its own undefined type instead), and properties can only belong to objects within JavaScript. There are a few variations of this error depending on the property you are trying to access. Sometimes instead of undefined it will say null.

http://net-informations.com/js/iq/unerror.htm

0
Аватар
Відмінити
Аватар
Moisés Augusto López Calderón
Найкраща відповідь

You could get the real reason with a small js print to debug.

Go to \addons/web/static/src/js/view_form.js#L533  and add the following lines:

console.log("FIELDNAME "+fieldname);
console.log(self.fields);


After reproduce the error and then check on your browser developer tools console to see the problem.

For chrome use right-click and inspect option and see the console.


Answer by @oscarolar

0
Аватар
Відмінити
Аватар
Aboura Nacim
Найкраща відповідь

If using nginx, read this post >>

http://www.developpez.net/forums/d1498867/logiciels/solutions-d-entreprise/erp/odoo-ex-openerp/v8-importation-csv-error-cannot-read-property-1-of-undefined/

0
Аватар
Відмінити
Аватар
Jason Christensen
Найкраща відповідь

I am also getting this same error when creating a new product from the point of sale menu. When I create a new product from anywhere else (like purchase menu) I do not get this error.

It happens for all users for me.

I have tried setting defaults in debug mode but that doesn't seem to find this 'undefined ' field.

The only thing I might be able to attribute this to is deleting the others category from point of sale categories (but it recreates it automatically).

0
Аватар
Відмінити
Аватар
Elevenmidia
Найкраща відповідь

This is happening also with my when I access the Products form and click on Create. Following the instructions I found 5 property values on product form: 3 for stock counter parts (property_stock_procurement, property_stock_production and property_stock_inventory) and 2 for accounting (property_account_income and property_account_expense). All 5 property values are defined on settings / parameters / configuration parameters. Any idea please?

0
Аватар
Відмінити
Аватар
Ahmed Ghazi
Найкраща відповідь

I am getting this error when trying to add a customer invoice. The error appears when I try to add an invoice line, it gives this error and does not allow me to add an invoice line.

I checked the property fields as suggested and all fields seems to be there. The system is a fresh install with a custom chart of accounts. Account payable and receivable are available for the customer. Also income and expense accounts are available for the product.

Please help.

UPDATE: The issue is now fixed. There was not default account set for the generic properties of receivable, payable, expense and income accounts. Thank you so much for your help.

0
Аватар
Відмінити
Felipe

remember that answer posts are only for answer, you can put your question as a comment to my answer, and also remember to thumb up if it was helpful.

Enjoying the discussion? Don't just read, join in!

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

Реєстрація
Related Posts Відповіді Переглядів Дія
search sales order by customer's phone number & email Вирішено
customer sale search
Аватар
Аватар
Аватар
2
груд. 22
10862
Issue After Migration: Unable to Save Sales Order in v18 Вирішено
sale
Аватар
Аватар
1
трав. 25
1895
How to set serial numbers for the sale order line
sale
Аватар
Аватар
Аватар
2
лют. 25
10830
product variant
product customer sale variant
Аватар
Аватар
Аватар
Аватар
3
лют. 24
1569
how to use customer model in an external model ?? Вирішено
customer
Аватар
Аватар
2
лют. 20
5023
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة 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 - це набір програм для роботи з відкритим кодом, які охоплюють всі ваші потреби компанії: CRM, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція Odoo - це одночасно дуже проста у використанні та повністю інтегрована.

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