← Back to team overview

openerp-india team mailing list archive

[Bug 903262] Re: [Delivery] Missing ondelete attribut on fields grid_id

 

Hello,
Its been merged with stable 6.0,
rid: xal@xxxxxxxxxxx-20120221113759-0v5sv8qcpsergeml 
r5083

Thanks for reporting!

** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/903262

Title:
  [Delivery] Missing ondelete attribut on fields grid_id

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  Hello.
  I use the last version of delivery module in addons.
  When I try to delete a "delivery pricelist", it raise me an error "IntegrityError: null value in column "grid_id" violates not-null constraint"
  The problem is that the attributs oncascade is missing on the field "grid_id" of the object "delivery_line_id"

  File delivery/delivery.py

  -        'grid_id': fields.many2one('delivery.grid', 'Grid',required=True),
  +        'grid_id': fields.many2one('delivery.grid', 'Grid',required=True, ondelete='cascade'),

  Have a nice day

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/903262/+subscriptions


References