[18.0][ADD] product_variant_change_template: New module - #471
Open
carlosdauden wants to merge 1 commit into
Open
carlosdauden wants to merge 1 commit into
carlosdauden wants to merge 1 commit into
Conversation
carlosdauden
force-pushed
the
18.0-ADD-product_variant_change_template
branch
from
September 25, 2026 01:20
158c89a to
b264e96
Compare
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
force-pushed
the
18.0-ADD-product_variant_change_template
branch
from
September 25, 2026 07:13
b264e96 to
c4ad6f0
Compare
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.
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