Repository navigation
[ADD] product_category_reservation_lead_time: reservarion lead time p… - #5
Closed
rebeca-martin wants to merge 1 commit into
Closed
rebeca-martin wants to merge 1 commit into
rebeca-martin wants to merge 1 commit into
Conversation
…er product category
rebeca-martin
deleted the
16.0-add-product_category_reservation_lead_time
branch
September 15, 2026 09:36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[ADD] product_category_reservation_lead_time
Módulo nuevo que aporta la superficie de configuración del plazo de reserva
de stock por categoría de producto. Es la Fase 1 de la reserva con ventana móvil
por categoría de Refruiting (
odoo-16/refruiting#1633, definición en#1582).Qué hace
product.category.reservation.rule: una regla porcategoría de producto y compañía, con nº de días de plazo.
regla propia hereda la del ancestro más cercano.
(
res.company.reservation_lead_days+ Ajustes de Inventario), usado cuando nila categoría ni sus ancestros tienen regla.
el día de la entrega") nunca se confunde con "sin configurar".
_resolve_reservation_days(category, company)que consume el módulomotor (Fase 2, aparte).
Alcance
bidireccional viven en
stock_reserve_sale_category_window(módulo aparte).depends = ["stock"](arrastraproduct): permite menú natural enInventario → Configuración → Reservation Lead Times y ACL por grupos de
inventario.
Cómo se ha probado
pre-commit run --all-filesen verde (black, isort, flake8, pylint_odoo,prettier-xml, oca-gen-addon-readme, setuptools-odoo).
_resolve_reservation_days(11 casos): global por defecto,regla en categoría, herencia, override, plazo 0, multi-compañía, edición del
global, regla inactiva y los dos
_sql_constraints.Objetivos de validación cubiertos (de la definición)
V8 (editable), V12 (multi-compañía), V13 (plazo 0).