← Back to team overview

credativ team mailing list archive

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

 

Hello,

This is now fixed in,
lp:~openerp-dev/openobject-addons/6.0-opw-51172-rha
Revision ID: rha@xxxxxxxxxxx-20111213063259-bvsmk4wyu1v3ye3u 
Revision 4953

We appreciate your efforts,
Best regards.

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

-- 
You received this bug notification because you are a member of OpenERP
Framework Experts, 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 Committed

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