Regras de reposição

As regras de reposição são usadas para manter os níveis de estoque previstos acima de um determinado limite, sem exceder um limite superior especificado. Isso é feito indicando a quantidade mínima que o estoque deve conter e a quantidade máxima que o estoque não deve exceder.

Reordering rules can be configured for each product based on the route used to replenish it. If a product uses the Buy route, then a request for quotation (RFQ) is created when the reordering rule is triggered. If a product uses the Manufacture route, then a manufacturing order (MO) is created instead. This is the case regardless of the selected replenishment route.

To set up reordering rules for the first time, refer to:

To understand and optimize replenishment using advanced features, see:

Reordering rules setup

To configure automatic and manual reordering rules, complete the following:

  1. Product type configuration

  2. Replenishment method

  3. Create rule

Product type configuration

A product must be configured correctly to use reordering rules. Begin by navigating to Inventory app ‣ Products ‣ Products, then select an existing product, or create a new one by clicking New.

On the product form, under the General Information tab, set the Product Type to Goods, and make sure the Track Inventory checkbox is ticked. This is necessary for Odoo to track the product’s stock levels and trigger reordering rules.

Product Type and Track Inventory configurations.

Replenishment method

Next, configure the replenishment method (e.g. buy or manufacture).

If the product is purchased, install the Purchase app, and confirm that the Purchase checkbox is enabled under the product name. In the Purchase tab, add at least one vendor to the vendor pricelist. Odoo uses the vendor at the top of the list to generate RFQs when reordering rules are triggered.

Ver também

Vendor pricelist

If the product is manufactured, install the Manufacturing app.

Next, ensure at least one bill of materials (BoM) is displayed in the Bill of Materials smart button at the top of the product form. This is necessary because Odoo only creates manufacturing orders (MOs) for products with a BoM.

If a BoM does not already exist for the product, click the Bill of Materials smart button, then click New to configure a new BoM.

Ver também

Configure BoM

Create a reordering rule

Para criar uma nova regra de reposição, navegue até app Inventário ‣ Operações ‣ Reposição, clique em Novo e preencha os seguintes campos para o item de linha da nova regra de reposição:

  • Produto: O produto que é reabastecido pela regra.

  • Local: O local onde o produto está armazenado.

  • Mín: A quantidade mínima que pode ser prevista sem que a regra seja acionada. Quando o estoque previsto ficar abaixo desse número, será criado um pedido de reposição para o produto.

  • Máx: A quantidade máxima da reposição do estoque.

O formulário para criar uma nova regra de reposição.

O formulário para criar uma nova regra de reposição.

Dica

Reordering rules can also be created from the Reordering Rules smart button on the product form.

Nota

To learn how the On Hand, Forecast, and To Order fields are calculated using on-hand quantities and future demand, see Just in time logic

For advanced usage, learn about the following reordering rule fields:

Nota

The fields above are not available by default, and must be enabled by selecting the (adjust settings) icon in the far-right corner and selecting the desired column from the drop-down menu.

Regra de reposição 0/0/1

A regra de reposição 0/0/1 é uma regra especializada usada para reabastecer um produto que não é mantido em estoque, toda vez que um pedido de vendas (SO) é confirmado para esse produto.

Importante

A regra de reposição 0/0/1 é semelhante à rota Reposição por pedido (sob demanda), pois ambos os fluxos de trabalho são usados para reabastecer um produto após a confirmação de uma SO.

A principal diferença entre os dois métodos é que a rota Reposição por pedido reserva automaticamente o produto para o SO que gerou sua reposição. Isso significa que o produto não pode ser usado em um SO diferente.

A regra de reposição 0/0/1 não tem essa limitação. Um produto reabastecido usando a regra não é reservado para nenhum SO específico e pode ser usado conforme necessário.

Outra diferença importante é que os pedidos de reposição criados pela rota Reposição por pedido são vinculados ao SO original por um botão inteligente na parte superior do pedido. Ao usar a regra de reposição 0/0/1, um pedido de reposição é criado, mas não é vinculado ao SO original.

Consulte a documentação Reposição por pedido (sob demanda) para obter uma visão geral completa da rota.

Para criar uma regra de reposição 0/0/1, navegue até app Inventário ‣ Produtos ‣ Produtos e selecione um produto.

Na parte superior da página do produto, clique no botão inteligente Regras de reposição para abrir a página Regras de reposição do produto. Na página resultante, clique em Novo para começar a configurar uma nova regra de reposição.

No campo Local da nova regra de reposição, selecione o local em que os produtos reabastecidos devem ser armazenados. Por padrão, esse local é definido como WH/Stock.

No campo Rota, selecione a rota que a regra deve usar para reabastecer o item. Por exemplo, se o produto deve ser comprado de um fornecedor, selecione a rota Comprar.

In the Min field and Max field, leave the values set to 0.00. In the To Order field, enter a value of 1.00.

Uma regra de reposição 0/0/1.

With the reordering rule configured using these values, each time an SO causes the forecasted quantity of the product to fall below the Min of 0.00, the selected Route is used to replenish the product in one-unit increments, back up to the Max of 0.00.

Example

An item is configured with a 0/0/1 reordering rule that uses the Buy route. Zero units are kept on-hand at any given time.

A SO is confirmed for one unit, which causes the forecasted quantity to drop to -1.00. This triggers the reordering rule, which automatically creates a PO for one unit.

Once the product is received from the vendor, the forecasted quantity returns to 0.00. There is now one unit on-hand, but it is not reserved for the SO which triggered its purchase. It can be used to fulfill that SO, or reserved for a different order.

Multiple

The Multiple field on the replenishment report (Inventory app ‣ Operations ‣ Replenishment) defines the unit used when replenishing a product. Odoo rounds the ordered quantity up to the nearest multiple that meets or slightly exceeds the Max quantity set on the reordering rule. If no multiples apply, select Units.

Example

A vendor sells soda only in cases of six cans, but your company tracks quantities per can. Setting the Multiple to 6 ensures soda is ordered in multiples of six (6, 12, 18…).

For a reordering rule with the Min = 10 and Max = 40:

  • If the forecasted quantity is 10, the amount To Order is 30, a multiple of six that will bring the On Hand quantity to exactly the maximum.

  • If the forecasted quantity is 8, the quantity needed to reach the max is 32. But 32 is not a multiple of six, so Odoo rounds the To Order quantity up to 36. This will cause the On Hand quantity to slightly exceed the maximum.

Reordering rule with the Multiple set to 6.

Nota

If the maximum is exceeded, expect to see a warning indicating the possibility of excessive stock.

Configuração

Multiples are based on defined packagings. Only packaging types listed on the product’s vendor pricelist appear as options in the Multiple field when configuring reordering rules.

Disparo

A reordering rule’s trigger can be set to automatic or manual. While both function the same way, the difference between the two types of reordering rules is how the rule is launched:

  • Auto: A purchase or manufacturing order is automatically created when the forecasted stock falls below the reordering rule’s minimum quantity. By default, the Auto trigger is selected.

  • Manual: The Replenishment report lists products needing replenishment, showing current/forecasted stock, lead times, and arrival dates. Users can review forecasts before clicking Order.

To enable the Trigger field, go to Inventory app ‣ Operations ‣ Replenishment. Then, click the (adjust settings) icon, located to the far-right of the column titles, and tick the Trigger checkbox.

Na coluna Disparo, selecione Auto ou Manual. Consulte as seções abaixo para saber mais sobre os diferentes tipos de regras de reposição.

Automático

Automatic reordering rules, enabled by setting the reordering rule’s Trigger field to Auto, generate purchase or manufacturing orders when either:

  1. The scheduler runs, and the Forecasted quantity is below the minimum, or

  2. A SO is confirmed, and lowers the Forecasted quantity of the product below the minimum.

If the Buy route is selected, then an RFQ is generated. To view and manage RFQs, navigate to Purchase app ‣ Orders ‣ Requests for Quotation.

If the Manufacture route is selected, then an MO is generated. To view and manage MOs, navigate to Manufacturing app ‣ Operations ‣ Manufacturing Orders.

Quando nenhuma rota é selecionada, o Blue Connect seleciona a Rota especificada na aba Inventário do formulário do produto.

Dica

O agendador está definido para ser executado uma vez por dia, por padrão.

Para acionar manualmente uma regra de reposição antes da execução do agendador, garanta modo de desenvolvimento está ativado, e selecione app Inventário ‣ Operações ‣ Executar agendador. Em seguida, clique no botão roxo Executar agendados na janela pop-up exibida.

Esteja ciente de que isso também aciona as outras ações agendadas.

Example

O produto, Lâmpada de escritório, tem uma regra de reposição automático definida para ser acionada quando a quantidade prevista cair abaixo da Quantidade mínima de 5,00. Como a Previsão atual é 55,00, a regra de reposição não é acionada.

Mostre a regra de reposição automática na página Regra de reposição.

Manual

Manual reordering rules, configured by setting the reordering rule’s Trigger field to Manual, list a product on the replenishment dashboard when the forecasted quantity falls below a specified minimum. Products on this dashboard are called needs, because they are needed to fulfill upcoming SOs, for which the forecasted quantity is not enough.

The replenishment dashboard, accessible by navigating to Inventory app ‣ Operations ‣ Replenishment, considers order deadlines, forecasted stock levels, and lead times. It displays needs only when it is time to reorder items, thanks to the To Reorder filter.

When a product appears on the replenishment dashboard, clicking the Order button generates the purchase or manufacturing order with the specified amounts To Order.

Click the Order button on the replenishment dashboard to replenish stock.

Rota

Blue Connect allows for multiple routes to be selected as replenishment methods under the Inventory tab on each product form. For instance, it is possible to select both Buy and Manufacture, indicating to Blue Connect that the product can be bought or manufactured.

Odoo also enables users to set a preferred route for a product’s reordering rule. This is the replenishment method (e.g., buying or manufacturing) that the rule defaults to, if multiple are available.

To specify a preferred route, begin by navigating to Inventory app ‣ Operations ‣ Replenishment.

By default, the Route column is hidden. To reveal it, select the (adjust settings) icon to the far-right of the column titles, and ticking Route from the drop-down menu that appears.

Clique dentro da coluna na linha de uma regra de reposição, e um menu suspenso mostrará todas as rotas disponíveis para essa regra. Selecione uma delas para defini-la como a rota preferencial.

Selecione uma rota preferencial no menu suspenso.

Importante

If multiple routes are enabled for a product but no preferred route is set for its reordering rule, the product is reordered using the Buy route, then Manufacture.

Advanced uses

Pairing Route with one of the following fields on the replenishment report unlocks advanced configurations of reordering rules. Consider the following:

  • Vendor: When the selected Route is Buy, setting the Vendor field to one of the multiple vendors on the vendor pricelist indicates to Odoo that the vendor is automatically populated on RFQs when a reordering rule triggers the creation of a purchase order.

  • Bill of Materials: When the Route is set to Manufacture, and there are multiple BoMs in use, specifying the desired BoM in the replenishment report, draft manufacturing orders are created with this BoM in use.

  • Procurement Group: This is a way to group related POs or MOs that are tied to fulfilling a specific demand, like an SO or a project. It helps organize and track which orders are linked to a particular demand.

    Nota

    Procurement groups link replenishment methods to demand, making smart buttons to appear — similar to how smart buttons appear when using the MTO route.

    Showing smart button to PO.

    Sales order (demand) with a smart button linking to the related purchase order (replenishment method).

    In the context of reordering rules:

    • Reordering rules do not automatically assign a procurement group, which is why there are no smart buttons that link SOs to POs, unlike the MTO route.

    • To enable smart buttons for products replenished by reordering rules (not MTO), with specific quantities linked to specific demands (e.g. SOs), assign a procurement group.

    • Without a procurement group, demands for the same product can be combined into a single RFQ, even if the reordering rule is executed multiple times for those demands. This allows for more efficient procurement by consolidating demands into fewer orders.

    Selecting a procurement group in the Procurement Group field on the replenishment report ensures that all linked orders are grouped under the same demand, based on the defined route.

    Exercise

    How can you set the Procurement Group, Vendor, and Route fields on the replenishment report to generate a single RFQ for five different products in sales order SO35, given they share the same vendor, Azure Interior, and ensure other demands for these products are handled separately?

    1. Set the Procurement Group to SO35, in the reordering rule for all five products. This groups the demands for SO35 in the same RFQ or MO.

    2. Set the Vendor to Azure Interior to ensure the RFQ is created for the same supplier.

    3. Set the Route to Buy to generate an RFQ.

    4. Click the Order button to generate a single RFQ for the five products tied to SO35.

    After placing the order, remove SO35 from the Procurement Group field of the five products’ reordering rules. This ensures future demands for these products are managed separately and assigned to different RFQs (the usual behavior).

Ver também

Just-in-time logic

Horizon days

Horizon days allow users to extend the time window between today’s date and the forecasted date when calculating for the forecasted quantity. This features allows users to plan and restock inventory proactively, rather than following a just-in-time approach. The feature is meant to help users plan replenishment in advance by increasing the forecasted date.

\[\text{Forecasted date} = \text{Current date} + \text{Vendor Lead Time} + \text{Horizon Days}\]

Since horizon days are only meant to be used with manual reordering rules, find details about the feature in the Replenishment report article.

Nota

Horizon days are configured on a company level.

The default horizon days setting can be set or updated by navigating to the Inventory app ‣ Advanced Scheduling. Enter the desired number of days in the Replenishment Horizon field, and click Save.

The Replenishment Horizon setting in the Inventory app.

Example of how horizon days affect replenishment planning

On the Replenishment report, there are currently two products listed due for reordering: Drawer, Black and Corner Desk. This is based on their current level of on-hand stock, and their forecasted stock level. The default horizon days is set as 20.

Replenishment report with horizon days set at 20.

However, by extending the horizon days to 30, an additional product is added to the list.

Replenishment report with horizon days set at 30.

This is because the additional product, [FURN_0789] Individual Workplace, has a delivery scheduled in twenty-nine days, at which point their on-hand stock levels will fall below the minimum needed on-hand.