~zaber/openobject-addons/stable_5.0-extra-addons

« back to all changes in this revision

Viewing changes to olap/olap.py

  • Committer: asb (Open ERP)
  • Date: 2009-03-06 14:37:14 UTC
  • mto: This revision was merged to the branch mainline in revision 3588.
  • Revision ID: asb@tinyerp.com-20090306143714-ncuch5f360gjp3lm
* Added the olap_crm - Demo Cube for the CRM

Show diffs side-by-side

added added

removed removed

Lines of Context:
466
466
            
467
467
                if make_ids:
468
468
                    make_ids.append(hier_obj.table_id.column_link_id.related_to.id)
 
469
                    make_ids.append(hier_obj.table_id.column_link_id.table_id.id)
469
470
                    args = [('table_id','in',make_ids),('hide','<>',True),('active','<>',False)]
470
471
                    ids = super(olap_database_columns,self).search(cr, uid, args, offset, limit,
471
472
                        order, context=context, count=count)
903
904
    
904
905
    _columns = {
905
906
        'name': fields.char('Measure name',size=64,required=True),
906
 
        'cube_id': fields.many2one('olap.cube', 'Cube',),
 
907
        'cube_id': fields.many2one('olap.cube', 'Cube',required=True),
907
908
#        'value_column': fields.char('Fact table column', size=64, readonly=True),
908
909
        'value_column': fields.many2one('olap.database.columns','Fact Table Column'),
909
910
        'value_column_id_name': fields.char('Column ID',size=64),