Browse Source

[FIX] mis_builder: missing cascade delete

pull/86/head
Stéphane Bidoul 10 years ago
parent
commit
1815a9aecf
  1. 6
      mis_builder/models/mis_builder.py

6
mis_builder/models/mis_builder.py

@ -266,7 +266,8 @@ class mis_report_query(orm.Model):
domain=[('ttype', 'in',
('date', 'datetime'))]),
'domain': fields.char(string='Domain'),
'report_id': fields.many2one('mis.report', string='Report'),
'report_id': fields.many2one('mis.report', string='Report',
ondelete='cascade'),
}
_order = 'name'
@ -445,7 +446,8 @@ class mis_report_instance_period(orm.Model):
multi="dates", string="To period"),
'sequence': fields.integer(string='Sequence'),
'report_instance_id': fields.many2one('mis.report.instance',
string='Report Instance'),
string='Report Instance',
ondelete='cascade'),
'comparison_column_ids': fields.many2many(
'mis.report.instance.period',
'mis_report_instance_period_rel',

Loading…
Cancel
Save