[FIX] ondelete cascade on product template of price history

bzr revid: qdp-launchpad@openerp.com-20140415094218-ji63eiavpniirjcj
This commit is contained in:
Quentin (OpenERP) 2014-04-15 11:42:18 +02:00
commit b5c85bf11f
1 changed files with 1 additions and 1 deletions

View File

@ -300,7 +300,7 @@ class prices_history(osv.osv):
_columns = {
'company_id': fields.many2one('res.company', required=True),
'product_template_id': fields.many2one('product.template', 'Product Template', required=True),
'product_template_id': fields.many2one('product.template', 'Product Template', required=True, ondelete='cascade'),
'datetime': fields.datetime('Historization Time'),
'cost': fields.float('Historized Cost'),
'reason': fields.char('Reason'),