Community mailing list archives

community@mail.odoo.com

Re: Record rules

by
Skillteam, Houssine BAKKALI
- 01/05/2015 06:14:34

Hi Torvald,

You just need to override the search method in invoice model adding or not the flag condition in the domain and call the super search method.

Le 5 janv. 2015 09:45, "Torvald Baade Bringsvor" <torvald@bringsvor.com> a écrit :
Hi

I have a case where I want to limit access to invoices. We have a flag (a boolean) and some users should only be allowed to see the invoices that have that flag set.

I have tried to make a global rule to stop access to invoice alltogether, and then another (group) rule to allow access for the selected few. But no success.

Do any of you have any examples of this? I see some people say to use properties, but I really can't see how that helps.

We are using Odoo 8.

-Torvald


Torvald Baade Bringsvor
Bringsvor Consulting AS - Odoo (formerly OpenERP) implementation partner

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe