El 22/07/15 a les 10:38, Jesús Martín Jiménez ha escrit:

    I want to add some fields on invoice_lines_tree, that are only
    relevant for supplier invoices (and supplier credit notes), so I
    added the following states on the field:

      {
         'invisible': ~Eval('context', {}).get('type','').in_(
    ['in_invoice','in_credit_note']),
      }


What is the utility of the void string param in the get method?

It's used as fallback value if type is not pressent in context.


--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

Reply via email to