-
-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[15.0][ADD] product_variant_template_reassign: New module #373
base: 15.0
Are you sure you want to change the base?
[15.0][ADD] product_variant_template_reassign: New module #373
Conversation
b333364
to
5ceb0cb
Compare
product_variant_template_reassign/wizards/reassign_variant_views.xml
Outdated
Show resolved
Hide resolved
if not new_variant: | ||
raise UserError( | ||
_( | ||
"The attributes selected didn't generate a variant in the target template" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"The attributes selected didn't generate a variant in the target template" | |
"The selected attributes didn't generate a variant in the target template" |
"product.template", | ||
self.origin_product_template_id.ids, | ||
self.target_product_template_id.id, | ||
method="sql", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With method="sql", the possible default_code
in the unique variant is lost, as well as other data. One possibility is to specify the merge options.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, done. Although with products with operations like done stock moves normally isn't possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I was not talking about changing the merge method, but adding the extra parameters to indicate the field merge options.
self.target_product_template_id.id, | ||
method="sql", | ||
) | ||
return { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please drop a comment in the thread saying that it has been merged for tracking purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
5ceb0cb
to
b1d5b3e
Compare
cc @Tecnativa TT51495
ready for review @carlosdauden @pedrobaeza