Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4800 Zobrazení

How should be configured correctly Mrp scheduler in multicompany environment? Company B is a child company A.

  • Nothing changed only activate? - works for both companies?
  • Define a call for both companies separately? - how?

Updated:
Probably issue? Cron scheduler is run as user Administrator and quants are reserved only for company A  (Administrator Company):

domain += [('company_id', '=', self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.id)]

Avatar
Zrušit
Autor Nejlepší odpověď

I reported the issue: https://github.com/odoo/odoo/issues/4627

Solutions:

1) Manualy

  • Run Scheduler - as user company A
  • Additionally Run Scheduler - as user company B

2) Cron

  • Add new "Run mrp scheduler for Company B" with Action to Trigger/Arguments = (True,ID,{'force_company':ID}), where ID = companyB.id

UPDATE:

Warning!!! with the concurrent runs of both shedulers procurements can be multiplied! (Suggested settings max_cron_threads = 1 in openerp-server.conf)

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
dub 23
2937
0
bře 15
5659
1
bře 15
5950
0
kvě 21
3710
2
dub 20
15855