Skip to Content
Menu
This question has been flagged
1158 Views

I have a schedule action which will create sale orders for different company depends on certain condition. I set up different behavior for each company when confirm Order. The problem is the schedule action is executed by Administrator because I need to access records from multi company, otherwise, I will get multi company restriction error. However, because of this, it conflicts which the set up when confirm Sale Order, it seems like it doesn't know what is the current company. My question is how to mimic the company widget on the top right of Odoo interface, for example, I want to trigger action_confirm like when I choose a company in the company widget.

In short, the schedule action is executed by user Administrator, but I want to execute certain function in the code under behalf of a specific company due to different set up behavior for multi company.

odoo

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 23
995
2
Aug 23
928
1
Dec 23
2065
1
Jul 23
1518
0
May 23
1282