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
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Consulting
    • Accounting Firm
    • Партнер Odoo
    • Marketing Agency
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • 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
Про цей форум
Допомога

Custom Task Properties Show with ID When Exporting to Excel – How to Show Only Value?

Підписатися

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

Це запитання позначене
project
2 Відповіді
1911 Переглядів
Аватар
Alia Adnan

Hello Odoo Community,

I’m working with the Project module in Odoo 18, and I’ve created a project called "Software Testing" with three stages: First Stage, In Progress, and Done.

Inside this project, I created a task named "Web Testing" in the First Stage. From the Action menu of the task, I added a custom Property with:

  • Label: Employee.
  • Field Type: Text.

The property works fine inside the task, but when I export the task to Excel, the property field appears like this:

{'ec679a2a7188466a': 'alia'}

Instead of showing just the value ("alia"), it includes the internal ID or key ('ec679a2a7188466a'). This makes the export hard to read or use in reports.

My questions Is there a way to export the custom properties without the internal ID—just showing the value (e.g., "alia")?

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

Hii,
Option 1: Use Studio to Add a Computed Field

Open the Task form (in Studio).

Click “Add a new field” → Choose "Text".

Click “Advanced Properties”.

Set this as the Python expression:

record.x_studio_employee.values()[0] if record.x_studio_employee else ''

(Replace x_studio_employee with your actual field name if it's different.)

Save and show this field in the list view.

Now when you export tasks, use this new field — it will show just "alia".

Option 2: Create a Computed Field via Code


If you're customizing with code, define a computed field like this:

from odoo import fields, models, api


class ProjectTask(models.Model):

    _inherit = 'project.task'


    employee_value = fields.Char(string="Employee (Cleaned)", compute="_compute_employee_value")


    @api.depends('employee')

    def _compute_employee_value(self):

        for task in self:

            val = task.employee

            if isinstance(val, dict):

                task.employee_value = next(iter(val.values()), '')

            else:

                task.employee_value = val or ''

i hope it is help full

-1
Аватар
Відмінити
Аватар
Cybrosys Techno Solutions Pvt.Ltd
Найкраща відповідь

Hi,


In Odoo, properties on tasks are stored as a JSON dictionary where the key is an internal identifier (like ec679a2a7188466a) and the value is what you entered (like "alia"). When exporting, Odoo doesn’t flatten this structure, so you see both the internal key and the value instead of just the user-friendly text.


Option 1 – Use custom fields instead of properties:

If you create a real custom field on the project.task model (using Studio or development), the data is stored directly in that field. This means when you export, you’ll get clean values such as "alia" without the extra technical identifiers. Properties are flexible but less reporting-friendly, so custom fields are the better long-term choice if reporting and exporting matter.


Option 2 – Add a computed field for export:

You can add a new computed field that pulls the property’s value out of the JSON. For example, a field like Employee (Property Value) can read from the property dictionary and return only the value. When exporting, you simply select this field instead of the raw properties. This works well if you want to keep using properties but need clean exports.


Option 3 – Reporting view or server action:

If you don’t want to modify the model itself, another option is to create a reporting SQL view or a server action that processes the JSON and extracts only the values. This way, you can generate reports or exports that ignore the internal IDs and only show readable values, without changing how properties are stored.


Hope it helps

0
Аватар
Відмінити
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 Відповіді Переглядів Дія
Contáctanos ¿Cómo llamar a Avianca desde Costa Rica?
project
Аватар
0
жовт. 25
3
Does Odoo support Sub Projects? ie: nesting of Projects?
project
Аватар
Аватар
Аватар
3
жовт. 25
3711
Sub-Tasks: Can I copy/paste a set of them?
project
Аватар
Аватар
Аватар
2
вер. 25
1090
How do people deal with internal and external message with projects
project
Аватар
Аватар
1
лип. 25
1476
Odoo Performance Issues After Upgrade
project
Аватар
Аватар
Аватар
2
черв. 25
4190
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
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