Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-927415-mma into 
lp:openobject-addons.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)
Related bugs:
  Bug #927415 in OpenERP Addons: "Delivery Method edits delete data"
  https://bugs.launchpad.net/openobject-addons/+bug/927415

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-927415-mma/+merge/91647

Hello,

     delivery: remove a unlink code in create_grid_lines method

Thanks.
mma
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-927415-mma/+merge/91647
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-927415-mma.
=== modified file 'delivery/delivery.py'
--- delivery/delivery.py	2012-01-31 13:36:57 +0000
+++ delivery/delivery.py	2012-02-06 12:41:20 +0000
@@ -105,9 +105,6 @@
         for record in self.browse(cr, uid, ids, context=context):
             grid_id = grid_pool.search(cr, uid, [('carrier_id', '=', record.id)], context=context)
 
-            if grid_id and not (record.normal_price or record.free_if_more_than):
-                grid_pool.unlink(cr, uid, grid_id, context=context)
-
             if not (record.normal_price or record.free_if_more_than):
                 continue
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to