Skip to content

[18.0][ADD] product_variant_change_template: New module - #471

Open
carlosdauden wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-ADD-product_variant_change_template
Open

carlosdauden wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-ADD-product_variant_change_template

Conversation

@carlosdauden

Copy link
Copy Markdown

Move existing variants to another template keeping their database identifier, so their stock, valuation, sales, purchase and accounting history is not rewritten. Source and target templates may already have variants generated by several attributes: the wizard adds the needed values or attributes to the target, gives the existing target variants a value for new attributes, excludes (or creates) the combinations that become possible but no variant uses, cleans the configuration of partially emptied sources, narrows template-level records such as vendor prices and pricelist rules to the moved variants, keeps sales prices through the extra price of the added values, and archives or merges the sources left without variants. The resulting configuration is validated by running the core variant synchronization in a rolled back savepoint before committing.

@Tecnativa
ping @sergio-teruel @chienandalu @carlos-lopez-tecnativa

@OCA-git-bot OCA-git-bot added series:18.0 mod:product_variant_change_template Module product_variant_change_template labels Sep 24, 2026
@carlosdauden
carlosdauden force-pushed the 18.0-ADD-product_variant_change_template branch from 158c89a to b264e96 Compare September 25, 2026 01:20
Move existing variants to another template keeping their database identifier, so their stock, valuation, sales, purchase and accounting history is not rewritten. Source and target templates may already have variants generated by several attributes: the wizard adds the needed values or attributes to the target, gives the existing target variants a value for new attributes, excludes (or creates) the combinations that become possible but no variant uses, cleans the configuration of partially emptied sources, narrows template-level records such as vendor prices and pricelist rules to the moved variants, keeps sales prices through the extra price of the added values, and archives or merges the sources left without variants. The resulting configuration is validated by running the core variant synchronization in a rolled back savepoint before committing.
@carlosdauden
carlosdauden force-pushed the 18.0-ADD-product_variant_change_template branch from b264e96 to c4ad6f0 Compare September 25, 2026 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:product_variant_change_template Module product_variant_change_template series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants