On 02/03/12 14:16 -0300, Felipe Alvarez Harnecker wrote:
> Tried this
> 
>       taxes = fields.Many2Many('account.invoice.line-account.tax',
>         'line', 'tax', 'Taxes', domain=[('parent', '=', False)],
>         states={
>             'invisible': 
> Equal(Eval('_parent_invoice.type'),'out_invoice_no_vat'),

    'invisible': Eval('_parent_invoice', {}).get('type') == 'out_invoice_no_vat'

>             },
>         depends=['type','_parent_invoice'])
> 
> 
> and all imaginable permutation  that you can think and doesn't work
-- 
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/

Attachment: pgpe7MEKDqcGT.pgp
Description: PGP signature

Reply via email to