Community mailing list archives

community@mail.odoo.com

RE: [multicompany context] Partner Access problem and possible module to fix bugs

by
hans.yonathan
- 08/25/2015 22:52:32

Hello Sylvain,

 

I notice this bug too,

Its great to know there’s module exist to fixed this problem.

 

 

Thank You.

 

Best Regards,

Hans Yonathan

Odoo Support

FALINWA Limited

Expert in Finance, Information System & Business Intelligence

Odoo Silver Partner

Website: www.falinwa.com

Tel. 13670137019 (China - Shenzhen)

 

From: Sylvain LE GAL [mailto:sylvain.legal@grap.coop]
Sent: Tuesday, August 25, 2015 9:24 PM
To: Community <community@mail.odoo.com>
Subject: [multicompany context] Partner Access problem and possible module to fix bugs

 

Hi all,

I faced to a right access problem in multicompany context, concerning partners created when creating users. (because 'res.users' inherit from 'res.partner').

 

The associated partner will have the company_id of the user. So the partner will be visible in this company, and can be used. (for a sale for example, etc..). But, if the user change his company, Odoo will change the company_id of the partner and so, the partner will be unreachable, generating access bug.

I don't know if it's a bug or a feature, but It's not a good behaviour in my case.

I so created a little module that disable all 'users' partners and remove 'company_id' on them. So :
-> those "special partners" are not available ;
-> there is no Access right bug ;

If you're interested by this module, I can share it in OCA. (I guess here : https://github.com/OCA/partner-contact)

This is in V7, but i'll port it in V8 in a while.

(Suggestion / remarks / review are welcome)

 

Kind regards.


Sylvain LE GAL
Service informatique
GRAP - Groupement Régional Alimentaire de Proximité

3 Grande rue des Feuillants, 69001 Lyon
Bureau :
(+33) 09.72.32.33.17
Astreinte :
(+33) 06.81.85.61.43
GRAP sur le Web : Site Web | Facebook | Twitter
GRAP - service Informatique sur le Web : Twitter

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe