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.

0

Mrp scheduler in multicompany environment?

By
zbik
on 1/10/15, 6:45 AM 852 views

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)]

1

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 1/10/15, 3:00 PM

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)

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

1 follower(s)

Stats

Asked: 1/10/15, 6:45 AM
Seen: 852 times
Last updated: 3/16/15, 8:10 AM