Browse Source

Correct export excel from preview

pull/90/head
Laetitia Gangloff 10 years ago
committed by Stéphane Bidoul
parent
commit
918d8ba310
  1. 2
      mis_builder/models/mis_builder.py

2
mis_builder/models/mis_builder.py

@ -672,6 +672,8 @@ class mis_report_instance(orm.Model):
} }
def create(self, cr, uid, vals, context=None): def create(self, cr, uid, vals, context=None):
if not vals:
return context.get('active_id', None)
# TODO: explain this # TODO: explain this
if 'period_ids' in vals: if 'period_ids' in vals:
mis_report_instance_period_obj = self.pool.get( mis_report_instance_period_obj = self.pool.get(

Loading…
Cancel
Save