Edujugon / laradoo

Odoo ERP API for Laravel
MIT License
160 stars 98 forks source link

Possibility to execute orWhere statements ? #14

Closed Okipa closed 5 years ago

Okipa commented 5 years ago

Hi @Edujugon, first, thanks for your package which is giving me great help for Odoo API requests !

I was wondering if there was a way to execute a a statement like that with the Odoo API :

(new Odoo)->connect()
    ->where('tag_ids', [1])
    ->orWhere('tags_ids, [2])
    ->get('crm.leads');

In fact, if we put several tag ids in one and only ->where() statement, it behaves like a where and where and not where or where.
I imagine this is possible but I couldn't manage to find the information.

Thanks by advance for your reply !

Okipa commented 5 years ago

@Edujugon
I managed to execute my odoo requests differently. I close this issue as it is irrelevant.