Skip to content
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

Syncing from upstream OCA/product-variant (15.0) #307

Merged
merged 5 commits into from
Mar 16, 2024
Merged

Conversation

bt-admin
Copy link

bt_gitbot

chienandalu and others added 5 commits March 15, 2024 09:00
With a non automatic reference mask that has a code prefix, when that
reference mask is recomputed, we could be repeating the prefix without
noticing it. For instance, when we change an product.attribute name and
that triggers all the default codes recomputations.

In a product template with variants (i.e.: Conference Chair)

- You'll have a reference mask ([Legs])
- Add a prefix: cc

--> The prefix is duplicated in the reference mask: cccc[Legs]

- Now you can delete de prefix manually from the mask and the resulting mask
  will be right: cc[Legs]
- Now change the name of the attribute Legs to something else.

--> The mask computation is retriggered and we get a duplicated prefix again cccc[Legs].

An extra issue would be that the mask isn't recomputed with the new attribute
name, although that would need some extra work.

TT48322
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 15.0 label Mar 16, 2024
@bt-admin bt-admin merged commit 5679c70 into brain-tec:15.0 Mar 16, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants