Calfa
Calfa

Reputation: 253

Odoo13: Set a domain filter for a whole module

I'm creating a new module for Odoo13, and my intention is to set the module so only users of OpenERP company (which currently has id = 2) can see the module.

I just created a filter in Odoo as follows (also tried many variations):

enter image description here

But it's not working :'(

Upvotes: 0

Views: 47

Answers (1)

Dipen Shah
Dipen Shah

Reputation: 2444

You have to check the id not the string for filtration.

Domain : [('company_id', '=', 2)]

So to compare with this it will check the company has the id with 2.

Upvotes: 1

Related Questions