You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Odoo 10多公司架构下内部采购订单报错:需设置伙伴供应商位置

Fixing "You must set a Vendor Location for this partner" in Cross-Company Purchase Orders

Hey there, let's work through this error you're hitting when trying to confirm internal purchase orders between Company A and Company B. This is a typical hiccup with multi-company setups in Odoo, especially when one company was configured after enabling multi-company mode. Here's a step-by-step breakdown to resolve it:

Root Cause

When dealing with cross-company purchases, Odoo treats the other company as a "vendor"—but unlike regular vendors, you need to map it to a specific inventory location owned by that company. Since Company B was set up post-multi-company enablement, this location mapping likely wasn't configured automatically for its partner record.

Step 1: Configure the Vendor Location for the Partner

First, switch to the company where you're creating the problematic purchase order (e.g., Company A if you're buying from Company B):

  • Open the Contacts app and search for the partner record of the other company (e.g., Company B's official contact entry).
  • Click Edit to modify the record.
  • Navigate to the Sales & Purchases tab.
  • In the Purchases section, locate the Vendor Location field. Select the primary inventory location of the other company (e.g., Company B's "Stock" location).
    • Note: If you don't see the location, make sure it's set to be shared across companies. Head to Inventory > Configuration > Locations, find the location, edit it, and check the Shared box (or set the Company field to "All Companies" depending on your Odoo version).
  • Save the partner record.

Step 2: Verify Multi-Company & Inventory Settings

Double-check these configurations to avoid future issues:

  • Ensure both companies have Multi-Company enabled: Go to Settings > General Settings and confirm the option is toggled on for each company.
  • If you're using Odoo Enterprise, enable the Inter-company Transactions module (found in Settings > Apps). This module automates cross-company order syncing and ensures location mappings are respected.
  • Confirm your user account has access to both companies and their inventory locations: Go to Settings > Users & Companies > Users, edit your profile, and add both companies to the Allowed Companies list.

Step 3: Test the Purchase Order

Go back to your draft RFQ/purchase order, refresh the page, and click Confirm. The error should no longer appear, and the order should move out of draft status.

If you still run into issues, double-check that:

  • The purchase order's Vendor field is correctly set to the other company's partner record (not a generic contact).
  • The selected Vendor Location is active and assigned to the correct company.

内容的提问来源于stack exchange,提问作者Aron

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.22 08:43:57