Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

MultiCompany: How can I share only "some" products between Companies?

Subscribe

Get notified when there's activity on this post

This question has been flagged
multicompanyproductssharev13
5 Replies
18361 Views
Avatar
Community Question

I have one Company per Country that I sell into.

I have a Product Catalog that is shared.


Most of my products can be sold in all Countries, so I am not assigning a Company to each product, this way they are visible in all Companies.


Some of my products can only be sold in specific countries, so I'd like to somehow manage this.

Is this possible?

3
Avatar
Discard
zahid

 \Ray Carnes response is the easyiest way to do it

Jamie White

Extremely useful. Thank you very much Ray.

Avatar
Ray Carnes (ray)
Best Answer

In this example, we have three Companies:

  • USA, Canada, Australia

... and five products:

  • Sold Everywhere, Sold in USA and Canada, Sold in USA, Sold in Australia, Sold in USA and Australia.




First, create a custom field on the Product that you can use to store which Countries a given Product can be sold in.  We will use the logic that if NO country is listed, it can be sold in ALL Countries.

(the yellow area is completed automatically for you by Odoo)


Then, add this field to the User Interface so you can start managing this relationship.

<page name="inventory" position="after">
<page name="countries" string="Allowed Companies">
<field name="x_company_ids"/>
</page>
</page>


Then, associate the Products with the Companies:


We now need a record rule that restricts the products seen.  I would recommend only applying this record rule based on a specific group of users.  Since the intention is to prevent Salespeople selling products, I would use one of the Sales Groups.


We also need a record rule that clears this restriction.  I recommend setting up a separate group for users who are allowed to see all products.


This is what Users in the Sales Group will see when logged into USA:

This is what Users in the Sales Group will see when logged into Canada:


This is what Users in the Sales Group will see when logged into Australia:




18
Avatar
Discard
Chris TRINGHAM

Hi Ray, this looks very useful.

Yunhe Song(yso)

Super useful!

MOHAMMED RAOUF M AMIN

Works but did some minor edits as of odoo 17 needs some changes
First of all Model should be only Product not product template
secondly adding this field to the User Interface should be done with Studio , couldnt do with this code

Avatar
miguelambriz182@gmail.com
Best Answer

Are we able to apply this solution even using the enterprise version of Odoo? Or is it only possible to work out with code? 

0
Avatar
Discard
Avatar
Morgan Fellous
Best Answer

Hi there,


Everything is working fine, but I still have some questions about the accounting aspect. It would be really helpful if we could select the default tax account, default income account, and default expense account for each company. This way, when we create invoices, the accounting will be automatically assigned to the correct accounts.


I'm wondering if anyone knows of a solution for this ?

Thanks
Morgan

0
Avatar
Discard
Avatar
Eduardo De la Cruz
Best Answer

Hi Ray,

That solutions works for sales module, will it work for ecommerce as well?

Thanks!

0
Avatar
Discard
Avatar
Adil Akbar
Best Answer

Hi, 

You can see following for this:

https://youtu.be/GkNgc-fZO-I

Hope it helps,

Thanks

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
User restricted in one company creates a product Multi-Company Issue | Access Rights | Products v16 EE Solved
multicompany products access rights
Avatar
Avatar
1
Oct 23
2507
(Odoo16-CE) Multicompany with shared catalog, with different sales channels and stock control
ecommerce multicompany products
Avatar
0
Jul 23
2119
Error posting payments to invoices in new company
multicompany v13 account.payment.customer.invoice
Avatar
0
Jan 22
2161
Social Marketing multi-company
social multicompany v13
Avatar
1
Apr 20
48
How do Landed Costs work if products are sold in the mean time? Solved
products landedcosts sold v13
Avatar
Avatar
2
Apr 25
7939
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now