~openerp-commiter/openobject-addons/trunk-extra-addons

« back to all changes in this revision

Viewing changes to account_reporting/account.py

  • Committer: Husen Daudi
  • Date: 2008-01-07 10:21:46 UTC
  • Revision ID: hda@tinyerp.com-1b9ef865a1620bdae6357f38174af77891953d2c
Module to change the defination of Invoice number field.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
                         ('Helvetica','Helvetica'),
60
60
                         ('Helvetica-Bold','Helvetica-Bold'),
61
61
                         ('Helvetica-Oblique','Helvetica-Oblique'),
62
 
                         ('Symbol','Symbol'),
63
62
                         ('Times-Bold','Times-Bold'),
64
63
                         ('Times-BoldItalic','Times-BoldItalic'),
65
64
                         ('Times-Italic','Times-Italic'),
104
103
                'font_style' : fields.selection(_font, 'Font'),
105
104
                'parent_id': fields.many2one('account.report.bs', 'Parent'),
106
105
                'child_id': fields.one2many('account.report.bs', 'parent_id', 'Childs'),
 
106
                'report_type' : fields.selection([('only_obj', 'Report Objects Only'),('with_account', 'Report Objects With Accounts'),('acc_with_child', 'Report Objects With Accounts and child of Accounts')],"Report Type")
 
107
        }
 
108
        _defaults = {
 
109
                'report_type': lambda *a :'only_obj'
107
110
        }
108
111
 
109
112
        def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80):