Skip to content

Having different companies per lines #60

@Martronic-SA

Description

@Martronic-SA

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionstalePR/Issue without recent activity, it'll be soon closed automatically.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions