← Back to team overview

credativ team mailing list archive

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

 

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP Publisher's Warranty Team (openerp-opw)

-- 
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):
  Confirmed

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