← Back to team overview

credativ team mailing list archive

[Bug 903262] [NEW] [Delivery] Missing ondelete attribut on fields grid_id

 

Public bug reported:

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

** Affects: openobject-addons
     Importance: Undecided
         Status: New

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

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


Follow ups

References