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

[14.0][FIX] product_supplierinfo_intercompany: Add company to synchronise r… #714

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ def _synchronise_supplier_info(self, pricelists=None):
)
# We pass the pricelist in the context in order to get the right
# sale price on record.price (compatible v8 to v12)
for record in self.sudo().with_context(
pricelist=pricelist.id, automatic_intercompany_sync=True
for record in (
self.sudo()
.with_context(pricelist=pricelist.id, automatic_intercompany_sync=True)
.with_company(pricelist.company_id)
):
domain = record._get_intercompany_supplier_info_domain(pricelist)
supplierinfo = record.env["product.supplierinfo"].search(domain)
Expand Down
Loading