El 22/07/15 a les 12:37, Jordi Esteve ha escrit:
I use these states in account_invoice_purchase_relation module [1] that filters some purchase fields depending on the type of invoice: _STATES = { 'invisible': If(Bool(Eval('_parent_invoice')), ~Eval('_parent_invoice', {}).get('type') .in_(['in_invoice', 'in_credit_note']), ~Eval('invoice_type') .in_(['in_invoice', 'in_credit_note'])), } [1] http://bitbucket.org/zikzakmedia/trytond-account_invoice_purchase_relation
Yes, but you're using only form view, but I wan't them in tree view as I want to make them searchable, but only on supplier invoices.
P.D: Where are defining the same field on invoice_lines (purchase) ;) -- Sergi Almacellas Abellana www.koolpi.com Twitter: @pokoli_srk
