OdooWiki OCA HUB

Sale Generator

sale_generator folder_open OCA/sale-workflow open_in_new
sale License: AGPL-3

Adds a new "Sale Generator" object that takes an existing sale order as template, allows you to select any number of partners, and generates one sale order per partner. The new sales orders will have copied certain fields defined on the generator.

auto_awesome What this module does

AI-generated from the code · Odoo 12.0

Create a reusable sale order template and generate one sale order per selected customer in a single batch. Track all generated orders from one generator screen and confirm them all at once.

This module adds a new "Generator" screen under Sales > Batch generation. On a generator you pick a sale order template, a warehouse and a date, then add any number of customers. Clicking "Generate Sales" creates one sale order per customer, copying the template's lines and the warehouse/company you chose.

  • Templates are ordinary sale orders flagged as templates, listed under Sales > Batch generation > Sale Order Templates. They are hidden from normal sale order lists and get their own TMPL- reference.
  • On the generator form you can add existing customers, or use "Create Customer" to open a quick customer form with "Save & next customer" and "Save & finish" buttons so you can enter several customers in a row.
  • While the generator is in "Generating Order" state, adding or removing customers automatically creates or deletes the matching draft sale orders.
  • The "Confirm All Generated Sales" button confirms every generated order and marks the generator as Done.
  • A "Sales" button on the generator opens the list of orders it produced.
  • Generators are numbered GEN- and are restricted per company, so users only see generators of their own company.

Depends on

sale_stocksale_management

Menus it adds

Batch generationGeneratorsSale Order Templates
Models and fields (3)
  • sale.order · extends an existing modelactive (Active), is_template (Is a generator template), generator_id (Generator)
  • res.partner · extends an existing model
  • sale.generator · new modelname (Generator), state (State), sale_ids (Sales), company_id (Company), date_order (Date), partner_ids (Partner), tmpl_sale_id (Sale Template), warehouse_id (Warehouse)

Text generated by AI (DeepSeek) from reading the Odoo 12.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 12.0

Confirmed on 2026-11-03 in branch 12.0 of OCA/sale-workflow.

terminal Installation and usage

OCA documentation · Odoo 12.0
  • Go to Sales / Sales / Generator
  • Create a generator
  • Create a sale order to be used as a template
  • Set the fields to be copied, i.e:

The first step generates the quotations, the second step confirms them all at once.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.