On 11/10/13 01:44 -0700, Narasimha Murthy wrote:
> Hi,
> I want to create view to show all the employees belongs to logged in user
> current company.
> Can i use domain to filter?how do i use domain.
> domain('company.company',Eval('user.company')) is correct?
First, the user company is in the context.
Second a domain is a list of tuple.
So it should look like:
[('company', '=', Eval('context', {}).get('company'))]
--
Cédric Krier
B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/
pgp6i01MMJ9l9.pgp
Description: PGP signature
