SHARE
TWEET

Untitled

a guest May 8th, 2014 147 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     cost_price = fields.Float('Cost Price', digits=(16, 4), states={
  2.                 'invisible': Or(~Eval('_parent_invoice', {}).get('type').in_(['out_credit_note']), Eval('type') != 'line'),
  3.                 'required': And(Eval('_parent_invoice', {}).get('type').in_(['out_credit_note']),
  4.                                 Eval('type') == 'line',
  5.                                 Eval('_parent_invoice', {}).get('state', 'draft') != 'draft')
  6.     }, depends=['invoice', 'type'])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top