Skip to content

[19.0][FIX] stock_account: product.value and stock.valuation.layer have different semantics - #5881

Open
hbrunn wants to merge 2 commits into
OCA:19.0from
hbrunn:19.0-stock_account-fix-product.value
Open

[19.0][FIX] stock_account: product.value and stock.valuation.layer have different semantics#5881
hbrunn wants to merge 2 commits into
OCA:19.0from
hbrunn:19.0-stock_account-fix-product.value

Conversation

@hbrunn

@hbrunn hbrunn commented Aug 4, 2026

Copy link
Copy Markdown
Member

this deals with the issue hinted at in #5855

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:19.0 labels Aug 4, 2026
@MiquelRForgeFlow MiquelRForgeFlow added this to the 19.0 milestone Aug 5, 2026
@hbrunn
hbrunn force-pushed the 19.0-stock_account-fix-product.value branch 2 times, most recently from ad5ba2c to 86e52c4 Compare August 18, 2026 17:19
@hbrunn
hbrunn marked this pull request as ready for review August 18, 2026 17:21
@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

BTW, is this PR ready to review and merge?

Comment thread openupgrade_scripts/scripts/stock_account/19.0.1.1/post-migration.py Outdated
Comment thread openupgrade_scripts/scripts/stock_account/19.0.1.1/post-migration.py Outdated
Comment thread openupgrade_scripts/scripts/stock_account/19.0.1.1/post-migration.py Outdated
@hbrunn

hbrunn commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

I forgot some details like lifting constraints on the svl table and linking product_value records to the svl they come from, but by and large, that's what I think should happen

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

@hbrunn please, rebase. I made an error when force pushing to 19.0 (it's already amended)

@hbrunn

hbrunn commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

why is anyone allowed to force push in the first place?

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

I have just removed the force push permissions.

@hbrunn

hbrunn commented Aug 19, 2026

Copy link
Copy Markdown
Member Author

https://github.com/OCA/OpenUpgrade/settings/branch_protection_rules/5942394 looked like this:

image

I've changed that to

image

@MiquelRForgeFlow

MiquelRForgeFlow commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

The option was marked in "Specify who can force push". I only removed the people there. So I suppose that when the list of people there is empty, github changes it to Everyone.

@hbrunn
hbrunn force-pushed the 19.0-stock_account-fix-product.value branch from 86e52c4 to 8c3360d Compare August 25, 2026 13:22
@hbrunn

hbrunn commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

I forgot some details like lifting constraints on the svl table and linking product_value records to the svl they come from, but by and large, that's what I think should happen

that's done now

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

Could you attend my comments regarding logging/not logging queries? :)

@hbrunn

hbrunn commented Aug 25, 2026

Copy link
Copy Markdown
Member Author

done

@cuongnmtm

Copy link
Copy Markdown

My commit inside the PR fixes the wrong product cost issue in my DB

#5951

@cuongnmtm

Copy link
Copy Markdown

If you think it is ok, please cherry-pick so I can close my PR

@hbrunn

hbrunn commented Aug 28, 2026

Copy link
Copy Markdown
Member Author

the comments your bullshit generator adds keep referring to v17. but we don't care about v17, we care about v18. also see my comment in your PR, which fails the tests added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants