Skip to content
ERPForAll DocsDevelopment

    Product catalog, variants, and pricing

    The product addon (erp-addon-product) implements the core product catalog for ERPForAll, providing category hierarchies, product templates, variant delegation inheritance, Cartesian variant generation, tiered customer pricelists, vendor purchase agreements, and barcode validation.

    product.supplierinfo defaults its company and currency from the active environment. An explicit empty company makes an agreement shared. A missing unit takes the variant/template main unit; an explicitly selected unit survives product changes. Minimum quantity uses the configured Product Unit precision. Price, discount, minimum quantity, sequence and lead time are editable agreement values. The defaults are zero price/discount, one minimum quantity and one day lead time.

    Variant-only create/write values infer the template. Explicit contradictory links fail the BUG-088 constraint; form onchange clears an incompatible variant in its isolated draft. Failed supplier create/write operations roll back their own changes. _compute_price is an explicit native helper using the product cost hook, so ordinary edits do not overwrite negotiated prices.

    The native ProductSellerMethods trait on product recordsets provides _prepare_sellers, _get_filtered_sellers, _select_seller and _select_seller_exact. These are ordinary extension chains with Super; there are no additional public RPC endpoints. Use the validated query builder:

    use erp_addon_product::{ProductProduct, ProductSellerMethods, SellerQuery};
    use erp_sdk::prelude::*;
    use erp_sdk::ValueMap;
    async fn vendor_for(
    product: &RecordSet<ProductProduct>, tx: &mut Transaction,
    ) -> Result<ValueMap> {
    let query = SellerQuery::default().with_quantity(Some(Decimal::from(12)));
    product._select_seller(tx, query).await
    }

    with_partner, with_parameter_partner and with_unit validate positive identities. with_quantity(None) skips quantity thresholds; zero does not. with_date overrides contextual today. with_force_uom(true) retains agreements in the requested or product main unit. with_order gives a readable supported scalar supplier field precedence; unknown fields and expressions fail.

    Preparation excludes inactive vendors, other variants and every company except the current company or shared rows, even when a branch user can read ancestor-company agreements. It sorts sequence, descending minimum quantity, raw price and ID. Filtering accepts a requested partner or its immediate parent; the parameter-partner filter is exact. Date endpoints are inclusive. Requested quantities are converted to each vendor unit, rounded UP at Product Unit precision, then compared at that precision.

    Selection considers the first eligible vendor’s rows. Their prices are normalized to the product unit, discounted and compared exactly in current-company currency. Currency display rounding never decides the winner; sequence and ID break ties. An empty result is an empty mapping. Supplier _get_seller_info returns supplierinfo, partner_id, price, discount, price_discounted, currency_id, uom_id, min_qty and delay. Record references are integer identities. Raw price and unit/currency remain the vendor’s terms; discounted price is per product main unit.

    Under ADR 0194, recurring discounted values are rounded half-up at runtime Product Price precision for fields/results. _get_discounted_price returns the exact ratio. _get_seller_info_exact and _select_seller_exact return Option<SellerInfo>; values() exposes the mapping and discounted_price() the unrounded vendor-currency ratio. Conversion errors, inaccessible links and numeric overflows propagate. There is no rate-one or generic-unit fallback added by this service.

    Product 1.1 adds the required stored vendor unit. Its pre-migration validates legacy template, variant and unit links before backfilling absent units from the template. Existing non-null units, shared company values, prices and currencies survive. A bad source link aborts the whole upgrade, listing the total invalid count and the first ten supplier IDs; repair those source records and retry the normal addon upgrade. No supplier business records are seeded. The import spreadsheet declaration/download is planned separately. Legacy null minimum quantities become explicit zero, preserving their former effective value before the field becomes required. They do not receive the new-record default of one.

    product.product delegates to product.template through the product_tmpl_id foreign key:

    #[model("product.product", inherits = [("product.template", "product_tmpl_id")])]
    pub struct ProductProduct {
    #[field(many2one = "product.template", required = true, ondelete = "cascade")]
    pub product_tmpl_id: i64,
    // ...
    }

    When a product.template is created without attribute lines, it automatically creates a single default variant record (product.product) linked to itself (SPEC-PRODUCT-002). For single-variant products, updates to barcode and default_code mirror bidirectionally between the template and its single variant (SPEC-PRODUCT-004). Archived variants count. When the template gains a second variant (created by hand, generated by an attribute line or moved into the template), the template’s mirrored barcode is cleared and the variant keeps it (SPEC-PRODUCT-171).

    A product has one picture and its stored smaller sizes; a variant can have its own.

    ModelFieldKind
    product.templateimage_1920the picture you write, at most 1920 x 1920 pixels (from image.mixin)
    product.templateimage_1024, image_512, image_256, image_128stored sizes of image_1920
    product.productimage_variant_1920the variant’s own picture, at most 1920 x 1920 pixels, stored
    product.productimage_variant_1024, image_variant_512, image_variant_256, image_variant_128stored sizes of image_variant_1920
    product.productimage_1920, image_1024, image_512, image_256, image_128the picture shown for the variant, computed, not stored

    product.template inherits the base mixin (inherit = [ImageMixin]); the checks, the scaling and the limits are those of Binary and image fields.

    Fallback (SPEC-PRODUCT-012). The five image_<size> fields of product.product are its own fields: they replace the template fields of the same names that delegation would bring. Each is the variant’s own picture of that size when the variant has one, otherwise the template’s picture of that size. They depend on image_variant_<size> and on product_tmpl_id.image_<size>, so a changed template picture shows on its variants in the same transaction. They are declared as image fields without max_width and max_height, because a computed image field that is not stored cannot carry bounds; their sources are already scaled.

    Writing a variant’s picture. Only image_1920 of the five can be written. For each variant the value goes to the template’s image_1920, and the variant’s own picture is cleared, when

    • the value is empty and the variant has no own picture, or
    • the value is a picture and the template has none, or
    • the template has at most one active variant.

    In every other case the value is kept as the variant’s own picture (image_variant_1920); an empty value then clears the variant’s own picture and the variant shows the template’s again. A write on several variants reads every value first and then writes variant by variant, so two variants of a template without a picture give the first picture to the template and keep the second on its variant. Writing image_variant_1920 directly always changes the variant only. The content is checked on the field it is written on, so a refused picture names product.product.image_1920. After the write, a read in the same transaction returns the stored picture (scaled and encoded again), not the bytes that were written.

    Deleting a variant. A variant that has its own picture, on a template that has none, gives its picture to the template before it is deleted. A template that has a picture keeps it.

    Views. The product and variant forms show image_1920 above the title, with image_128 as its preview; the lists show image_128 in a first column.

    Default and demo data. The addon ships no product pictures. Odoo’s product addon has none in its installed data either (odoo/addons/product/__manifest__.py:28-31: data/product_data.xml and data/product_attribute_data.xml name no image field); its demo data does (odoo/addons/product/data/product_demo.xml:62), ours does not yet.

    Not built. Odoo’s zoom flags can_image_1024_be_zoomed (template and variant) and can_image_variant_1024_be_zoomed are not declared. Odoo also moves a variant’s write_date with its template’s so a browser reloads a variant picture that comes from the template (odoo/addons/product/models/product_product.py:150, :253-280); that is not built.

    product.category maintains hierarchical parent paths (parent_path) using the ORM’s parent store mechanism:

    • Default order is parent_id desc, name asc (the ordinary many2one order contract applies; this is not a depth or raw-ID sort).
    • complete_name is an un-stored computed field that resolves recursively as "Parent / Child" (SPEC-PRODUCT-030). hierarchical_naming=false changes only display_name, retaining the complete path. Category name_create writes name with ordinary creation defaults and returns the computed label.
    • Multi-company validation rejects moving categories or assigning cross-company parents (SPEC-PRODUCT-036).

    The variant generator engine (addons/product/src/variant_generator.rs) evaluates Cartesian products over template attribute lines (product.template.attribute.line and product.template.attribute.value):

    • Generation modes:
      • always: All valid variant combinations are generated immediately (SPEC-PRODUCT-013).
      • dynamic: Variant records are created on-demand during document entry (SPEC-PRODUCT-014).
      • no_variant: Attributes alter pricing or document lines without creating variant rows.
    • Exclusion rules: Combinations matching excluded_value_ids are pruned (SPEC-PRODUCT-021). If all combinations are excluded, matrix generation raises a validation error (SPEC-PRODUCT-028).
    • Dynamic limit: Combination counts exceeding product.dynamic_variant_limit (default 1000) are rejected (SPEC-PRODUCT-027).
    • Obsolete variant replacement: When matrix generation executes on a template, any existing variant whose combination is no longer valid (e.g. initial blank variant {}) is automatically unlinked.

    product.pricelist and product.pricelist.item provide tiered pricing rules:

    1. Precedence order: applied_on (0_product_variant > 1_product > 2_product_category > 3_global), then min_quantity desc, then date_start desc, then id desc.
    2. Formulas:
      • fixed: Evaluates to fixed_price.
      • discount: Evaluates to base_price * (1 - discount / 100).
      • markup: Evaluates to base_price * (1 + markup / 100).
    3. Rounding & Margins: Surcharges (price_surcharge), rounding (price_round with half-up / MidpointAwayFromZero strategy), and clamping between price_min_margin and price_max_margin (SPEC-PRODUCT-073..076).
    4. Recursion protection: Chained pricelists (base = 'pricelist') detect circular references and fail loudly.

    addons/product/src/barcode.rs provides multi-company barcode enforcement:

    • Empty barcodes are ignored (SPEC-PRODUCT-047).
    • Single-variant template and variant share the same barcode without collision (SPEC-PRODUCT-051).
    • Multi-variant templates cannot share barcodes with their variants (SPEC-PRODUCT-052).
    • Company scoping allows matching barcodes across disjoint companies (SPEC-PRODUCT-049), while global products (company_id = None) conflict with all companies (SPEC-PRODUCT-050).
    • Intra-batch duplicates within a single create or write call are strictly rejected.
    • Product/packaging collisions use shared-or-equal-company overlap in both directions, independently of caller visibility. Packaging/packaging barcodes are globally unique.
    • Company-only template, delegated variant and packaging writes recheck affected holders. Archived holders participate too.
    • Values use exact stored-string equality; validation never trims a barcode. Clearing a product barcode releases its claim.
    • skip_barcode_uniqueness_check is refused whenever supplied, including false. Bulk loaders use ordinary ORM create/write and cannot opt out (ADR 0201).
    • Diagnostics list all conflicting barcode groups with visible product/variant labels and append one access note. Holders the caller cannot read are shown by one fixed phrase, “one or more records you cannot see”, which tells neither their number nor their kind. Elevated integrity discovery never grants permission to display a label.
    • product.barcode.scope is a permanent write fence per barcode; product.barcode.claim records canonical ownership. Both are derived internal models with no ordinary-user ACL or initial catalog records. A single-variant mirror has one claim. Holder foreign keys release claims on parent/unit cascades without relying on child unlink hooks.

    Derived integrity rows reject direct ORM create, write and unlink even for privileged callers and loaders. Only native reconciliation and lifecycle SQL maintain them; ordinary holder writes remain the supported API. Migration diagnostics report the total conflicting row count and the first ten identities, matching the existing supplier migration diagnostic convention. The sample bounds an operator error payload, not record admission. Normal duplicate messages continue to list all conflicting requested barcode groups and reader-visible records.

    product.uom links a product (product_id), a unit (uom_id) and a barcode, for example a carton of 12.

    • The barcode is required and unique among packagings (_barcode_uniq, SPEC-UOM-018).
    • A packaging barcode cannot equal a product barcode in an overlapping company scope (SPEC-UOM-019 and SPEC-PRODUCT-042). Shared overlaps every company; two different non-null companies do not overlap. This rule is symmetric and sees hidden products too (BUG-143, ADR 0201).
    • company_id defaults to the active company of the environment.
    • The addon adds product_uom_ids to uom.uom and to product.product (#[extend]).
    • allowed_uom_ids combines product availability with applicable supplier units. In active_model=uom.uom context it contains the packaging row’s unit. The label layout action is not available yet (SPEC-UOM-023).
    • A new template takes the unit uom.product_uom_unit, looked up by external id (product::defaults::default_unit_id). If the external id is missing the create fails with a clear error; no unit is created and no other unit is used.
    • A pricelist without currency takes the currency of its company, or of the active company. With neither the create is refused. Template currency follows the same rule. There is no “company 1” or “first currency” fallback.
    • product.attribute ships five default records (pa_brand, pa_size, pa_color, pa_material, pa_pattern, SPEC-PRODUCT-103).

    Templates, categories, pricelists, vendor agreements, combos and packagings are scoped with company_access = direct(field = "company_id", branch = "ancestor", empty = "allow"): a user sees records of an active company, of its ancestors (a parent company shares its catalog with its branches) and records without company. The matching record rules use parent_of. Variants follow their template. Barcode uniqueness is per company: the same barcode may exist in two unrelated companies, while a record without company collides with every company.

    A barcode error never names a product the caller cannot read: the collision is found as superuser, the name is read with the caller’s own access, and unreadable holders are shown as “one or more records you cannot see”, however many there are. Concurrent assignments write the same permanent barcode scope row. A repeatable-read transaction whose snapshot predates a competing committed writer fails with the ordinary retryable Concurrency error. Retry the entire transaction using the existing ORM/RPC runner, never just its failed statement. A fresh conflicting attempt returns the detailed Validation message. Do not delete empty scope rows.

    Installing and upgrading barcode integrity

    Section titled “Installing and upgrading barcode integrity”

    Product version 1.5.0 installs the integrity tables and backfills existing holders during the module upgrade transaction, set-based and validated once. Upgrade takes write-excluding holder-table locks. A template barcode that one of its own variants also holds while the template has several variants (earlier versions mirrored the only active variant and kept the copy when a variant was added) is cleared on the template first; the variant keeps the barcode. Any other overlapping duplicate refuses the upgrade with the total count and the barcode, model and row identities of the first ten. Correct the source rows through an operator-reviewed migration and rerun the normal module upgrade; there is no winner selection, barcode normalization or bypass switch. Failure rolls back claim creation and version advancement. Default product data and demo data still use ordinary lifecycle writes.

    Deleting a company referenced by a barcode claim is refused rather than allowing SET NULL to widen its scope silently. Explicitly reassign or clear the holders first. Reverting to a writer that accepts the old bypass flag is not an admitted rollback while this invariant is active. Schema-owner SQL can bypass ORM hooks; any operator data migration must rebuild and validate claims before reopening service. Runtime users must not maintain the integrity tables directly.

    Performance and persistent-fence storage costs are unmeasured and deferred to milestone end (ADR 0065). Two-connection tests establish transaction behavior; they do not establish whole SPEC-PRODUCT-102 multi-node variant-generation coverage.

    Cost valuation addons (stock_account, erp-stockval) supply standard_price per row without writing the product row on every receipt. The hook is an ordinary overridable model method on product.product:

    #[method]
    async fn _get_standard_price(this: &RecordSet<ProductProduct>, tx: &mut Transaction)
    -> Result<Vec<Decimal>>; // one value per record, in the company of the environment

    The default reads the stored standard_price. A later addon overrides it like any method (see cross-addon extension):

    #[extend(ProductProduct)]
    pub struct ProductProductValuation {}
    #[methods(ProductProduct)]
    impl ProductProductValuation {
    #[method(override)]
    async fn _get_standard_price(this: &RecordSet<ProductProduct>, tx: &mut Transaction, sup: Super)
    -> Result<Vec<Decimal>> {
    // answer from the valuation state, or call `sup` for rows you do not value
    sup.call(tx, this.as_records(), ()).await
    }
    }

    Every cost read of this addon goes through it: the template standard_price compute and the standard_price base of pricelist rules (no fallback to the template cost when the variant cost is 0). Call it with use erp_addon_product::ProductProductMethods; then set._get_standard_price(&mut tx).await?. Tests: addons/product/tests/cost_hook.rs (a test addon overrides the method). Limit: a direct read of the standard_price field of a variant is the stored value; code that needs the valued cost must call the method.

    standard_price is a plain stored float for now. Odoo stores it per company (SPEC-PRODUCT-061); the ORM does not yet store a numeric value in a company-dependent column, so that case is open.

    Combinations are produced lazily (variant_generator::Combinations, valid_combinations) and generation stops at 1001 valid combinations, before anything is allocated for the rest. Lines created in one batch regenerate the variants once. Exclusion-heavy spaces are cut after 1 000 000 examined combinations with a clear error. Obsolete variants are unlinked, or archived when something still refers to them. An active variant combination is unique per template (_combination_unique).

    Templates own uom_ids; variants own extra_uom_ids. Native methods in erp_addon_product::packaging expose _get_available_uoms, _get_main_uom and _has_multiple_uoms through ordinary addon dispatch. Empty template input has no available units. Combos never report multiple-unit support. Global multi-unit feature state comes from the designated superuser’s effective uom.group_uom membership through UoM’s _is_uom_feature_enabled hook; a caller’s membership is not the global setting. This classification grants no extra model access.

    Before replacing a template’s main unit, product checks caller write authority, registers the target unit, then calls variant _update_uom(to_uom_id) with skip_uom_conversion=true. Base product returns true without changing business documents. An override can update or refuse its own documents; false or an error refuses the enclosing operation. Base _trigger_uom_warning is false; an override can enable the template/variant form warning for an actual unit change. It describes one-to-one replacement, not arithmetic conversion. Ordinary transaction poisoning still applies to failed writes; native callers recovering within a transaction use an enclosing transaction savepoint.

    Variant replacement preserves extra packaging from old combinations that are subsets of each new combination, separately for each template. Template packaging is inherited through delegation rather than duplicated onto variant extra units.

    Unit product_uom_ids is a context-dependent One2many projection with its original uom_id inverse. product_id and product_ids form a union filter. Its inverse uses Records::x2many_commands to preserve temporary child create/update commands and applies only the visible projection’s delta; other companies and product contexts are not cleared. all_product_uom_ids is the internal backing relation, not the screen’s field. Context filtering is presentation, never authorization.

    action_open_packaging_barcodes is a read-effect RPC on templates, variants and units. A template needs a visible variant for its creation default. Unit actions always filter by unit and additionally intersect product_ids; product_id alone is only a relation filter. Action labels come from installed action metadata. The native unit action preserves context. Closed browser normalization transports only supported packaging/default context; validated caller-selection, company/language/prefetch environment keys are removed because the browser retains its own invocation metadata and environment. Unknown keys fail explicitly. Server and browser validate positive safe product identities; the existing result size/depth bounds remain in force.

    Product 1.3 registers main/additional/extra units and packaging units through erp_addon_uom::references::register in the same transaction. Its post-migration backfills historical catalog references using bounded seek batches. Removal never clears a committed marker. Stock’s snapshot capture remains a separate consumer.

    Catalog permissions and Products privilege

    Section titled “Catalog permissions and Products privilege”

    The product.res_groups_privilege_product record groups the existing product.group_product_manager right under Products. Internal users (base.group_user) have read access; product managers have CRUD access. base.group_system implies the manager group, so the operator-created Settings administrator needs no seeded user XML identity or fixed user number. Feature groups product.group_product_pricelist and product.group_product_variant are light groups; the addon extends _get_light_group_xmlids through super, preserving base and UoM classifications. Feature classification supplies no model permission.

    Variants, template attribute lines/values, pricelist rules and combo items use their declared owner for company access. The direct catalog owners retain ancestor-company and shared-record visibility. Generated company restrictions and additional handwritten restrictions constrain the existing grants; neither a manager group nor a visible menu bypasses them.

    Normal addon upgrade loads the new privilege and runs a post-migration for the existing noupdate manager group. An absent privilege link is filled once. A pre-existing custom privilege is retained; subsequent upgrades preserve edited privilege labels and an intentionally removed manager link. Missing or mistyped required XML identities refuse the migration and roll back its transaction. Repair the named identity and retry the ordinary upgrade; do not manufacture administrator users. The post-data classification call runs after feature XML identities are published and is not an RPC method.

    Templates display [internal reference] Name when a reference exists. Variants additionally append their distinguishing attribute values. display_default_code=false hides the code, including when formatted_display_name=true; formatted mode otherwise uses Name\t--code--. These are per-call presentation preferences. Boolean preferences reject wrong types; partner_id, seller_id and company_id accept positive record IDs or false.

    Variant code computes the internal reference or a visible vendor reference for partner_id. It skips a seller targeting another variant, prefers an applicable variant-specific row and falls back to the internal code for an empty vendor code. partner_ref uses the first matching partner seller description (falling back to internal reference then product name), prefixed by the computed code; without a matching seller it uses display_name. Its first-row selection is intentionally separate from the code-selection scan.

    display_name can join distinct matching vendor labels. Variant-specific sellers take precedence over template-wide sellers. Partner/commercial-partner matching and explicit seller_id selection remain subject to supplier access. company_id can narrow display selection; code considers global and explicitly active-company sellers rather than adopting the display-name company filter.

    All three vendor-derived fields check and read supplier data as the actual label consumer, including many2one and name-lookup reads performed internally with elevation. No supplier model read permission or no visible eligible seller means public product naming. Supplier record rules apply, and only global or explicitly active-company sellers are considered. This is a deliberate disclosure restriction relative to elevated upstream label reads (ADR 0195); it also covers partner_ref. Suppliers are loaded once per compute batch, not once per variant. Writes to supplier naming/selection fields invalidate the dependent labels.

    Label computes use the reserved label_reader context dependency. See model compute dependencies for its identity semantics and Env::label_reader(). Compute overrides retain normal native super composition; extending labels does not require replacing the read or RPC methods.

    Ranked product lookup, bracketed-code search, variant-backed template search and category complete-name search are planned separately. These label changes do not claim those search contracts are complete.

    Attributes are ordered by sequence, id and new attributes default to sequence 20. Their editable active, display_type and create_variant fields retain record-level configuration; display types include image and range. Image storage remains a separate capability. The multi-checkbox draft onchange selects no_variant for an unused attribute; the persisted multi/mode constraint still applies.

    attribute_line_ids, template_value_ids and product_tmpl_ids expose catalog relationships. product_tmpl_ids is computed on read from the attribute’s active lines and is not stored, so every read, also one without a field list, returns the current templates. number_related_products counts configuration lines on active templates under the current line filter; it is not a distinct-template count. Two lines on one template contribute two. The template relation can retain an archived template while the count becomes zero. Company rules still apply to ordinary reads.

    Changing a used attribute’s creation mode, deleting it or archiving it is refused. Writing the same mode succeeds. These global configuration guards check use across companies; diagnostic labels include only products the caller may read. Inaccessible use is described without revealing the product name.

    Attribute values expose active, is_custom, html_color, related display_type and pav_attribute_line_ids. Reverse line links are not copied. Value labels include the attribute unless show_attribute=false; this boolean switch rejects other types and is separate from PTAV’s display_attribute_name switch. The default palette color is sampled from indices 1 through 11 after explicit, context and persisted defaults. A supplied color remains editable on the value. Value ordering is attribute_id, sequence, id.

    is_used_on_products follows linked active-template use. default_extra_price_changed compares a draft with its origin and compares materialized extras only in the validated allowed-company scope (including shared/ancestor-company templates). It returns a boolean and never rewrites existing configured extra prices. New values default their extra price to zero. Reassigning or deleting a used value is refused; a value referenced only by archived variants is archived with its identity preserved.

    product.attribute.custom.value stores user-entered custom_value and a required custom_product_template_attribute_value_id relation. Its computed name trims custom text and includes the referenced value’s label. The relation restricts deletion of the referenced PTAV. Ordinary internal users can read only custom-value rows they created; product administrators have CRUD access. Custom text follows the company of its product through the template value: a manager of another company neither finds nor reads, changes or deletes it (SPEC-PRODUCT-172, BUG-146). There are no predefined custom text records, matching the reference’s user-created-data contract.

    The pre-schema migration gives existing attributes and values their previous visible state by adding or backfilling active=true. Existing false activity, IDs, sequences, extra prices and combination links are preserved; existing sequence 1 records are not reset to the new-record default of 20. Run the normal addon upgrade so schema metadata, the custom-value model and its ACLs are installed together. The activity step is version 1.4 so databases already on the separate 1.3 packaging release receive it; packaging reference protection remains a 1.3 post-migration and the privilege backfill remains a 1.2 post-migration. The migration backfills rows explicitly and leaves database column defaults unset; new-record defaults belong to the ORM field declarations. Database/migration failures propagate through the module upgrade transaction, including rollback of schema, data and the installed version after a later failure.

    Template-line/PTAV archive/reuse coordination, reusable combination helpers, image storage and the attribute-update wizard are separate deliveries. This section does not claim those capabilities.

    The optional accounting addon owns product.template.taxes_id and supplier_taxes_id. Product itself has no accounting dependency. Variants delegate these fields to their template. Explicit empty choices remain empty, and ordinary writes preserve existing unreadable tax links. See Tax definitions for company scope and defaults. The shared-product resolver and consumers remain outside this extension.

    Product version 1.6.0 makes the lead time of a vendor price (delay) required, one day by default; the upgrade gives older rows without one the one day before the column becomes required.