Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3814 Visualizzazioni

Hello,


I've got module (car workshop) downloaded from internet, planned to use it on one odoo instance prepared for 3 companies. Unfortunately it turns out that module is (seems?) not supporting multicompany setup in odoo. Currently I see separate, for example, accounting (different invoices / numbers for each company), while as for mentioned module, all data entered in one company are visible for users from other companies.

Does it mean that this module was written wrongly? Or maybe there are some steps I'm not aware of to prepare such a module to work properly in multicompany setup?


regards

Tomasz

Avatar
Abbandona

Hello @Tomasz,

we can't say that Module is actually written wrongly based on their requirement they developed

what you can do to make it compatible for multi company setup, kindly create record rule for new object which created in that module.

you can also check base ref. of odoo , odoo created record rule for no. of objects in base module (like sales,purchase,accounting etc.)

Also you can check the below ref. link.

https://www.odoo.com/forum/help-1/question/how-to-setup-multi-company-access-right-6679

Thanks,

Dipak

Autore

Hello Dipak,

Thank you for explanation; from the other hand - I've found in .py file in models line as below:

company_id = fields.Many2many('res.company', string='Company Name', default=lambda self: self.env['res.company']._company_default_get('car.workshop'))

Am I right/wrong guessing that proper change in this line would cause to use as company_id NOT default company, but user's one?

regards

Tomasz

Post correlati Risposte Visualizzazioni Attività
2
lug 25
1817
3
lug 25
2243
1
lug 25
1530
3
nov 24
361
4
set 24
3130