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
    • 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
    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. Extra Tools
  3. NextERP - Auto Create Sale Tasks v 19.0
  4. Sales Conditions FAQ

NextERP - Auto Create Sale Tasks

by NextERP Romania https://www.nexterp.ro
Odoo
v 19.0 Third Party 57
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Sales (sale_management)
• Invoicing (account)
• Project (project)
• Discuss (mail)
Lines of code 84
Technical Name nexterp_sale_task_create
LicenseOPL-1
Websitehttps://www.nexterp.ro
Versions 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Sales (sale_management)
• Invoicing (account)
• Project (project)
• Discuss (mail)
Lines of code 84
Technical Name nexterp_sale_task_create
LicenseOPL-1
Websitehttps://www.nexterp.ro
Versions 19.0
  • Description
  • License
NextERP - Auto Create Sale Tasks icon

NextERP - Auto Create Sale Tasks

NextERP - Auto Create Sale Tasks

v 19.0.1.0.1 OPL-1
  • Overview
  • Features
  • Configuration
  • How it works
  • Versions

Overview

Switch project-task creation on sale_project from always-on to opt-in. Standard Odoo creates a task as soon as a sale order with a service product is confirmed; this module gates that behaviour behind a per-order Auto Create Sale Tasks flag (defaulted from the company setting) and adds a Generate Tasks button so users can trigger the creation manually when the flag is off.

The override lives in sale.order.line._timesheet_service_generation: when the create_tasks context key is missing, the standard generator only runs for SO lines whose order has sale_create_taks_auto = True. The button on the sale order form calls action_generate_tasks, which loops through the order's lines and runs the generator with create_tasks=True for any line that does not yet have a task_id.

Targets project / services businesses where confirming a quotation should not always spawn tasks — for instance when sales teams prepare orders ahead of project staffing, or when tasks are created later from an external planning step.


NextERP Romania

Built & supported by NextERP Romania

Romanian Odoo specialists, here for the long run — from implementation to localization and day-to-day production support.

10+
Years of Odoo experience per team member
80%+
of Romanian Localization maintained on Odoo Apps
19.0
Tracking every Odoo major release

What we do

⚙️

Odoo Solutions

From quick-start rollouts to multi-company deployments and custom modules built for your processes.

🇷🇴

Romanian Localization

SAF-T (D406), e-Factura, e-Transport, D300 / D390 / D394, ANAF integration, full chart of accounts and fiscal positions.

🛟

Our Services

Implementation, customization, migration, integration, support and consultancy — Romanian-speaking, SLA-backed.

Features

  • New boolean Auto Create Sale Tasks on res.company, exposed in Settings → Sales → Quotations & Orders, controlling the default behaviour for all sale orders of that company.
  • Matching boolean on sale.order, initialised from the company setting via an onchange on company_id and shown next to the payment terms on the order form.
  • Override of sale.order.line._timesheet_service_generation:
    • if the context flag create_tasks=True is passed, all lines in self go through the standard generator;
    • otherwise the override filters lines so only those whose order has sale_create_taks_auto=True trigger task creation.
  • New action sale.order.action_generate_tasks iterating over order.order_line, calling _timesheet_service_generation with create_tasks=True only on lines that do not yet have a task_id; with_company is used so multi-company orders keep the right project context.
  • New Generate Tasks button on the sale order form, placed next to Set to Draft, visible only when Auto Create Sale Tasks is off — turning the action into a one-click manual fallback.
  • All sudo() and company switching is handled inside the action so salespeople without full project access can still trigger task creation on their own orders.

Configuration

1. Company default

  1. Go to Settings → Sales → Quotations & Orders.
  2. Locate the Auto Create Sale Tasks setting.
  3. Tick it to keep the standard Odoo behaviour (tasks created automatically when a sale order with service lines is confirmed).
  4. Leave it unticked to switch the company to manual mode — sale orders will not generate tasks until the user clicks Generate Tasks on each order.
  5. Click Save.

2. Per-order override

  1. Open any quotation or sale order in Sales → Orders → Quotations / Orders.
  2. Next to the Payment Terms field, the Auto Create Sale Tasks checkbox is shown. It is filled from the company default via the onchange on Company, but you can override it per order:
    • On — tasks are created automatically on confirmation.
    • Off — no tasks are created until Generate Tasks is clicked.

3. Prerequisites

  • The module depends on sale_project. Make sure the service products used on your orders have Product Type = Service and Service Tracking = Task in Project (or Project & Task) — the standard _timesheet_service_generation only acts on these lines.
  • The default project on each service product (or on the order) must be set so tasks can be created in the right place.

4. Access rights

No new access rights are introduced. Standard Sales / Project groups remain in charge. The Generate Tasks button runs through sudo() and with_company() so users with Sales access but limited Project rights can still trigger creation.


To install this module, you need to:

  • clone the branch 14.0 of the repository https://github.com/NextERP-Romania/odoo-community
  • add the path to this repository in your configuration (addons-path)
  • update the module list
  • search for "NextERP - Auto Create Sale Tasks" in your addons
  • install the module

How it works

Automatic mode

When Auto Create Sale Tasks is ticked (either at company level or on the specific order), the behaviour matches stock Odoo:

  1. The user confirms a sale order containing service lines flagged as Task in Project.
  2. _timesheet_service_generation runs as usual and creates one task per qualifying SO line.
  3. The Generate Tasks button is hidden — there is nothing to trigger manually.

Manual mode

When the flag is off (company default or per-order override):

  1. The user confirms the sale order. No tasks are created — the override on _timesheet_service_generation filters the order out because sale_create_taks_auto is False on the order.
  2. The Generate Tasks button (red primary button next to Set to Draft) becomes visible. The user clicks it whenever the tasks should actually exist (after staffing decisions, billing confirmation, kick-off meeting, etc.).
  3. action_generate_tasks iterates over order.order_line and, for every line that does not already have a task_id, calls _timesheet_service_generation with the create_tasks=True context. This forces the override to bypass the filter and create the task.
  4. The button is safe to click multiple times: lines that already have a task_id are skipped, so it can also be used to catch up on later additions to the order.

Mixed orders

The flag applies to the whole sale order, but the standard generator already filters out non-service lines and lines that do not require a task. Mixed orders (services + goods) only generate tasks for the service lines, just like the original behaviour.

Switching mode mid-flight

  • Changing the company default does not retroactively update existing orders; the value is copied to each order at creation through the onchange. To enable / disable for an existing order, edit the Auto Create Sale Tasks field directly on the order form.
  • Switching from manual to automatic on an existing order does not re-fire _timesheet_service_generation. Click Generate Tasks (or temporarily switch the order to manual and click) to create the missing tasks.

Versions

19.0.1.0.1 (2026-05-25)

  • Changelog tracking starts at this release.

Discover the NextERP suite

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

NE
NextERP - Sale Update Prices Auto

NextERP - Sale Update Prices Auto

NE
NextERP - Account EDI Journalt
Accounting

NextERP - Account EDI Journal

NE
NextERP - Account Invoice Report
Accounting

NextERP - Account Invoice Report

NE
NextERP - Allow Debt Recovery Invoice
Invoicing

NextERP - Allow Debt Recovery Invoice

NE
NextERP - Allow Delete Last Invoice
Invoicing

NextERP - Allow Delete Last Invoice

NE
NextERP - Conformity Certificate
Special

NextERP - Conformity Certificate

NE
NextERP - Inter Company
Base

This module helps to identify if a record is inter company transaction or not.

NE
NextERP - Inter Company Account
Accounting

This module helps to identify if an account move line and account move is inter company transaction or not.

NextERP Romania

Odoo implementation, customization, Romanian localization and long-term support since 2018.

nexterp.ro
All apps
Odoo Proprietary License v1.0

This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).

You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).

It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.

The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

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