[IMP] Account: account report search view

bzr revid: mra@tinyerp.com-20110824102211-5ua2w8w50z7swkz4
This commit is contained in:
Mustufa Rangwala (OpenERP) 2011-08-24 15:52:11 +05:30
parent a45dc6e5a6
commit 8c8dfa436e
3 changed files with 4 additions and 4 deletions

View File

@ -2612,14 +2612,14 @@ class account_report(osv.osv):
_description = "Account Report"
_columns = {
'name': fields.char('Report Name', size=32, required=True),
'name': fields.char('Name', size=32, required=True),
'parent_id': fields.many2one('account.report', 'Parent'),
'sequence': fields.integer('Sequence'),
'type': fields.selection([
('sum','Sum'),
('accounts','Accounts'),
('account_report','Account Report'),
],'Type'),
],'Report Type'),
'account_ids': fields.many2many('account.account', 'account_account_report', 'report_line_id', 'account_id', 'Accounts'),
'note': fields.text('Notes'),
'account_report_id': fields.many2one('account.report', 'Account Report'),

View File

@ -2749,7 +2749,7 @@ action = self.pool.get('res.config').next(cr, uid, [], context)
<search string="Account Report">
<group>
<field name="name"/>
<field name="parent_id"/>
<field name="type"/>
<field name="account_report_id"/>
</group>
<newline/>

View File

@ -29,7 +29,7 @@ class accounting_report(osv.osv_memory):
_columns = {
'enable_filter': fields.boolean('Enable Comparison'),
'account_details': fields.boolean('Details by Account', help="Print Report with the account details."),
'account_report_id': fields.many2one('account.report', 'Account Reports', required=True),
'account_report_id': fields.many2one('account.report', 'Account Report', required=True),
'label_filter': fields.char('Filters Label', size=32, help="This label will be displayed on report to show the balance computed for the given comparison filter."),
}
def _print_report(self, cr, uid, ids, data, context=None):