Having different companies per lines #498
Unanswered
Martronic-SA
asked this question in
Q&A
Replies: 1 comment
-
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The new aep expression parsing and domain filter is working very well.
The only issue I have faced is when you try to have different companies per line using for example:
bale[('company_id','=',False),('user_type_id','in',(12,13,14,15,16))]
This is used in my case to get the total revenue for every companies together in a particular P&L.
and if you have another line with
bale[('user_type_id','in',(12,13,14,15,16))]
both will show the same value as the key generated in self._map_account_ids will be the same for both two lines even if the accounts are not the same (depending on the company choice).
I've found a workaround by first looking for 'company_id' in account domain and add the companies found to the related self._map_account_id key.
That needs further reflection.
Beta Was this translation helpful? Give feedback.
All reactions