Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • 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 Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & 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
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

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

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
project
2 Replies
2055 Views
Avatar
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
Avatar
Discard
Avatar
D Enterprise
Best Answer

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
Avatar
Discard
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Best Answer

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

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

Sign up
Related Posts Replies Views Activity
Does Odoo support Sub Projects? ie: nesting of Projects?
project
Avatar
Avatar
Avatar
3
Oct 25
3919
Sub-Tasks: Can I copy/paste a set of them?
project
Avatar
Avatar
Avatar
2
Sep 25
1248
How do people deal with internal and external message with projects
project
Avatar
Avatar
1
Jul 25
1605
Odoo Performance Issues After Upgrade
project
Avatar
Avatar
Avatar
2
Jun 25
4380
Gestion de Taller mecanico
project
Avatar
Avatar
Avatar
3
May 25
4105
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة 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 is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

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