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
    • Artificial Intelligence
    • 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
    • Property 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
    • Affiliate Program
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Technical
  3. Task Progress v 20.0
  4. Sales Conditions FAQ

Task Progress

by Terrabit https://www.terrabit.ro , Dorin Hongu https://www.terrabit.ro
Odoo
v 20.0 Third Party 7
Download for v 20.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 19.0 20.0
You bought this module and need support? Click here!
Versions 19.0 20.0
  • Description
  • Manifest
Task Progress

Task Progress

Long tasks in parallel steps, with progress

Odoo 20.0 Technical Odoo.sh • On-premise LGPL-3
✓ 7 automated tests
100% code coverage
★ Did this module help you? It is free, built and maintained by the Terrabit developers. If it saved you time, a rating on this page is the best way to say thanks — and it helps other Odoo users find it too. Thank you for your support!
★ Leave a rating ↓
  • Overview
  • Usage
  • Versions
Overview

Technical module: runs a long task step by step in a progress dialog, several steps at a time, instead of a single request that times out or blocks the screen.

A model inherits task.progress.mixin and returns _task_progress_action(...) from a button. The dialog calls the step method once per item (a page of a PDF, a batch of records), a few in parallel, each in its own request and transaction, and shows:

  • the progress bar, the items done and an estimate of the time left;
  • the counter returned by the steps (lines read, records created);
  • the items that failed, with their errors, and a button to run them again;
  • a button to stop after the items in progress.

When every item is done, the dialog calls the finish method and opens the action it returns (a preview, the created records). Closing is blocked while items are running.

Used by: deltatech_ai_purchase_pdf (vendor invoice PDF read with AI page by page).

Usage

In the consumer model:

class MyWizard(models.TransientModel):
    _name = "my.wizard"
    _inherit = ["task.progress.mixin"]

    def action_run(self):
        return self._task_progress_action(
            "run_part",
            items=[0, 1, 2],
            finish="action_done",
            parallel=3,
            title=self.env._("Reading the document"),
            unit_label=self.env._("parts"),
            count_label=self.env._("lines"),
        )

    def run_part(self, index):
        # one item, one transaction: write the result on a row of its own
        ...
        return 12  # added to the counter

    def action_done(self):
        return {"type": "ir.actions.act_window", "res_model": self._name, "res_id": self.id}

Steps running at the same time must not write on the same row (the wizard included), otherwise they fail with serialization errors: keep each item's result on a row of its own and merge them in the finish method. A parallel higher than the number of HTTP workers of the server only queues the requests.

Without a wizard, the steps run on the records themselves (an action of the list view):

def action_send_to_carrier(self):
    return self.env["task.progress.mixin"]._task_progress_action(
        "action_send_to_carrier_one",  # called on each order: order.action_send_to_carrier_one()
        self.ids,
        model=self._name,
        item_names=self.mapped("name"),
        parallel=1,
        auto_start=False,
        show_items=True,
        intro=self.env._("Send the orders to the carrier."),
        finish="action_download_awb_labels",  # called on the orders sent
        finish_mode="button",
        labels={"start": self.env._("Send"), "finish": self.env._("Print AWBs")},
    )

def action_send_to_carrier_one(self):
    ...
    return {"status": "warning", "message": "uncertain result, check at the carrier"}

A step returns a number (the counter) or {"status", "message", "count"}: success, warning (done, shown to check by hand, never run again) or error (run again by the retry button, like a step that raises).

With init, the dialog first calls record.init(), which returns {"items": [...], "item_names": [...], "total": n, "detail": "..."}: the work is prepared on the server (a file read, a plan made) while the dialog shows Preparing.... With close, record.close() is called when the dialog is closed after a complete run, and the action it returns is opened.

Versions

20.0.1.1.2 (2026-11-24)

  • The props of the progress dialog are declared in static propsSchema, read by useProps(this.constructor.propsSchema): a subclass adds its own props (deltatech_background_job, "Run in background").
  • Consultant sheet forward-ported from 19.0, with its screenshots (Odoo 19 UI; to retake on 20.0 once deltatech_delivery and deltatech_ai_purchase_pdf are migrated).

19.0.1.1.1 (2026-10-23)

  • The counter is hidden while init prepares the items: it showed "0 / 0".

19.0.1.1.0 (2026-10-23)

  • The steps can run on the item records (model, without a record): the "Send to Carrier" dialog of deltatech_delivery.
  • A step can return a status: warning is done and never run again (a result to check by hand), error is run again by the retry button.
  • List of the items with their status and message (show_items); start button with an introduction (auto_start=False, intro); finish as a button on the items done (finish_mode="button"); init method that prepares the items when the dialog opens; close method called when the dialog is closed after a complete run.
  • Development status Production/Stable: deltatech_delivery (stable) depends on it.

19.0.1.0.0 (2026-10-23)

  • First version: the progress dialog of deltatech_ai_purchase_pdf, made generic through task.progress.mixin.
800+
Modules published on Odoo Apps
Odoo
Silver PartnerImplementation & Support

Need help getting started?

Our 800+ apps on the Odoo Apps Store are used in Odoo implementations across Europe, the Americas, Asia and Africa — by companies we have never even met. That is the advantage of building modules that simply work.

Questions about this module? Write to us — the developers who build it will answer.

Terrabit support →

More apps by Terrabit

Other modules from the same publisher, built to work together. All apps →

CM Cron Monitor Webhook Technical

Run cron jobs from webhook

CP Deltatech Cron Progress Technical

Common helper for batch cron jobs based on the native cron progress

CB Terrabit Connect - Base Technical

Base for Terrabit Connect: station registry, outbound job queue, REST endpoints (X-Station-Key), HTTP calls and named…

DE Deltatech Tools

Shared base for the Deltatech suite: common technical extensions used by all modules

AE Accounting Extensions Accounting & Finance

Extra invoice views, journal options and an Anglo-Saxon cost recognition setting

AA Account Analytic Split Accounting & Finance

Analytic distribution by sales team and percentage split of analytic amounts

UD UBL Despatch Advice Accounting & Finance

Deltatech Account UBL despatch advice

CI Custom Invoice Exchange Rate Sales

Edit the currency rate on the invoice

Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 488
Technical Name deltatech_task_progress
LicenseLGPL-3
Websitehttps://www.terrabit.ro

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
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

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