Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

✅[Inventory][Contacts] How to restrict products and contacts by company using Branches?

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
productcontactsinventorymulticompanybranches
1 Răspunde
224 Vizualizări
Imagine profil
Eduardo Cano Herrera (edch)

By default, Odoo uses the “Company” field on products and contacts to define in which companies a record will be available. This leads to an “all or one” situation in which all companies will have access to this record or only one will have it. 



Until now the workaround was if a record is shared between 2 or more companies, leave it for blank to be shown in all companies. Some companies need more punctual control over which records are available in each company.


A solution for this problem is to create separate companies as branches, then you can separate products by main company and will only be available for companies whose branches are in that company without the need for customizations. 


Example: 

You have 3 companies:

  • Company A

  • Company B

  • Company C

You want some products to show for only company A & B but not C 

  1. Create a new “Main” company.
  2. Set A and B as branches of that Main company.
  3. Assign the product to Main.

This way the product will be visible for Companies A&B but not C.


VIDEO

0
Imagine profil
Abandonează
Chris TRINGHAM

There's a good solution from Ray Carnes if you don't mind doing a bit of light development: https://www.odoo.com/forum/help-1/multicompany-how-can-i-share-only-some-products-between-companies-170837

Imagine profil
Kunjan Patel
Cel mai bun răspuns

Hello Eduardo Cano Herrera
I hope you are doing well

Solution:
1. Python model (
product_template.py ):

  from odoo import fields, models
  class ProductTemplate(models.Model):
      _inherit = 'product.template'
      allowed_company_ids = fields.Many2many('res.company', string='Allowed Companies')

 2.Security rule (security/ir_rule.xml):
  <record id="product_multi_company_rule" model="ir.rule">
      <field name="name">Product Multi-Company Access</field>
      <field name="model_id" ref="product.model_product_template"/>
      <field name="domain_force">[
          '|',
          ('allowed_company_ids', '=', False),
          ('allowed_company_ids', 'in', company_ids)
      ]</field>
  </record>

  3.View (views/product_template_views.xml):
  <record id="product_template_form_view_inherit" model="ir.ui.view">
      <field name="name">product.template.form.inherit</field>
      <field name="model">product.template</field>
      <field name="inherit_id" ref="product.product_template_only_form_view"/>
      <field name="arch" type="xml">
          <field name="company_id" position="after">
              <field name="allowed_company_ids" widget="many2many_tags"/>
          </field>
      </field>
  </record>

Usage: Leave empty = all companies see it. Select A & C = only A & C see it.

I hope this information helps you

Thanks & Regards
Kunjan Patel
0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
✅[Inventory][Contacts][Multicompany] How to restrict products and contacts by company using Branches?
product contacts contact inventory multicompany branches
Imagine profil
1
nov. 25
67
Make product available in 2 out of 4 companies
product inventory multicompany
Imagine profil
Imagine profil
Imagine profil
2
sept. 21
3061
how to display all child company product's in the parent company inventory master data ? Rezolvat
product inventory multicompany productcatalog odoo12
Imagine profil
Imagine profil
1
feb. 21
10491
Issue with Return Location in Transfer
product inventory
Imagine profil
Imagine profil
1
mar. 25
2850
merge multi companies into one company and branches
multicompany branches
Imagine profil
0
nov. 24
2042
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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