Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

Share products between multi companies

By
Pascal Tremblay
on 10/19/14, 7:55 AM 1,759 views

I tried at least with 10 new installations to create this multi companies situation.

I'm on Odoo version 8.0.2

I followed all the tutorials I have found. It doesn't work.


Here is the situation :

+ Company's Structure
      - Main company
            - ciesub1
                  - ciesub1.1

+ Users
      - Admin (Main company, Allowed Companies : Main Company)
      - sub1user (ciesub1, Allowed Companies : ciesub1)

+ Products
      - productmain (company_id = Main company)
      - product1 (company_id = ciesub1)
      - product1.1 (company_id = ciesub1.1)
      - productglobal (company_id = null )


+ In Sales -> Products -> Products :
      - Admin user can see ALL 4 products; (good, normal)
      - sub1user can only see productglobal and product1. (??????????????????)
     
     
Questions / comments

      - Why does subuser1 not see products from Main company? (I have read that it should see it, but I CAN'T reproduce it.)
      - Why does subuser1 not see products from his child company ciesub1.1? (Mysterious thing!)
      - Is this a bug?


      (3 days on this problem... hope you could help me)


Thanks for your attention

Some screenshot for gift to you :

 

1

Pascal Tremblay

--Pascal Tremblay--
1312
| 5 2 7
Alma, Canada
--Pascal Tremblay--


Pascal Tremblay
On 10/19/14, 3:04 PM

Our problem is resolved! YES! and REYES!

In Settings -> Technical -> Security -> Record Rules -> Product multi-company , the default rule was wrong. So we change :

 

['|',('company_id','=',user.company_id.id),('company_id','=',False)]

for :
['|','|',('company_id.child_ids','child_of',[user.company_id.id]),('company_id','child_of',[user.company_id.id]),('company_id','=',False)]

Sounds like something that should be fixed. Did you submit a bug report?

Jeff Beidler
on 11/18/14, 5:13 PM

I don't know how to make it.

Pascal Tremblay
on 11/18/14, 5:23 PM

The issue queue is here, unless they have more than one: https://github.com/odoo/odoo/issues

Jeff Beidler
on 11/18/14, 5:33 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

3 follower(s)

Stats

Asked: 10/19/14, 7:55 AM
Seen: 1759 times
Last updated: 6/26/15, 11:31 AM