Merge lp:~unifield-team/unifield-addons/uf-1216 into lp:unifield-addons

Proposed by Patrick Amstutz
Status: Merged
Merged at revision: 4546
Proposed branch: lp:~unifield-team/unifield-addons/uf-1216
Merge into: lp:unifield-addons
Diff against target: 11 lines (+1/-1)
1 file modified
sale/sale.py (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-addons/uf-1216
Reviewer Review Type Date Requested Status
UniField Dev Team Pending
Review via email: mp+115507@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'sale/sale.py'
--- sale/sale.py 2012-07-04 12:05:33 +0000
+++ sale/sale.py 2012-07-18 10:08:38 +0000
@@ -1263,7 +1263,7 @@
1263 context = {}1263 context = {}
1264 """Allows to delete sales order lines in draft,cancel states"""1264 """Allows to delete sales order lines in draft,cancel states"""
1265 for rec in self.browse(cr, uid, ids, context=context):1265 for rec in self.browse(cr, uid, ids, context=context):
1266 if rec.state not in ['draft', 'cancel']:1266 if rec.state not in ['draft', 'cancel'] and not context.get('call_unlink', False):
1267 raise osv.except_osv(_('Invalid action !'), _('Cannot delete a sales order line which is %s !') %(rec.state,))1267 raise osv.except_osv(_('Invalid action !'), _('Cannot delete a sales order line which is %s !') %(rec.state,))
1268 return super(sale_order_line, self).unlink(cr, uid, ids, context=context)1268 return super(sale_order_line, self).unlink(cr, uid, ids, context=context)
12691269

Subscribers

People subscribed via source and target branches

to all changes: