~ubuntu-branches/ubuntu/utopic/tryton-modules-analytic-invoice/utopic

« back to all changes in this revision

Viewing changes to invoice.py

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Behrle, Daniel Baumann, Mathias Behrle
  • Date: 2010-05-13 20:56:02 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100513205602-x9iygrlzc10irqna
Tags: 1:1.6.0-1
[ Daniel Baumann ]
* Adding Dm-Upload-Allowed in control in preparation for Mathias.

[ Mathias Behrle ]
* Merging upstream version 1.6.0.
* Updating copyright.
* Updating depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#this repository contains the full copyright notices and license terms.
3
3
"Invoice"
4
4
from trytond.model import ModelView, ModelSQL, fields
 
5
from trytond.pyson import Not, Equal, Eval
5
6
 
6
7
 
7
8
class InvoiceLine(ModelSQL, ModelView):
10
11
    analytic_accounts = fields.Many2One('analytic_account.account.selection',
11
12
            'Analytic Accounts',
12
13
            states={
13
 
                'invisible': "type != 'line'",
 
14
                'invisible': Not(Equal(Eval('type'), 'line')),
14
15
            })
15
16
 
16
17
    def _view_look_dom_arch(self, cursor, user, tree, type, context=None):