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

[FIX] stock: product quantities by company #36856

Conversation

svs-odoo
Copy link
Contributor

Before this commit, the product/product template computed quantity fields wasn't computed by active company but for all companies.
So, set compute_sudo on false for the different computed quantity fields of products and product templates to avoid to search with sudo active and to search by company.

Before this commit, the product/product template computed quantity
fields wasn't computed by active company but for all companies.
So, set `compute_sudo` on false for the different computed quantity
fields of products and product templates to avoid to search with sudo
active and to search by company.
@C3POdoo C3POdoo added the RD research & development, internal work label Sep 13, 2019
Before this commit, the product/product template computed mrp quantity
fields wasn't computed by active company but for all companies.
So, set `compute_sudo` on false for the different computed mrp quantity
fields of products and product templates to avoid to search with sudo
active and to search by company.
Before this commit, the reordering rules computed quantity fields wasn't
computed by active company but for all companies. So, set `compute_sudo`
on false for `nbr_reordering_rules`, `reordering_min_qty`,
`reordering_max_qty` of products and product templates to avoid to
search with sudo active and to search by company.
@sle-odoo
Copy link
Contributor

robodoo r+ rebase-ff

@robodoo
Copy link
Contributor

robodoo commented Sep 13, 2019

Merge method set to rebase and fast-forward

@robodoo robodoo added r+ 👌 CI 🤖 Robodoo has seen passing statuses labels Sep 13, 2019
robodoo pushed a commit that referenced this pull request Sep 13, 2019
Before this commit, the reordering rules computed quantity fields wasn't
computed by active company but for all companies. So, set `compute_sudo`
on false for `nbr_reordering_rules`, `reordering_min_qty`,
`reordering_max_qty` of products and product templates to avoid to
search with sudo active and to search by company.

closes #36856

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
@robodoo
Copy link
Contributor

robodoo commented Sep 13, 2019

Merged at 1ad8b88, thanks!

@robodoo robodoo closed this Sep 13, 2019
@fw-bot fw-bot deleted the saas-12.5-fix-on-hand-quantity-multicompany-svs branch October 18, 2019 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI 🤖 Robodoo has seen passing statuses RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants