Merge lp:~mallorymarcot/unifield-server/us-3837 into lp:unifield-server

Proposed by jftempo
Status: Merged
Merged at revision: 4663
Proposed branch: lp:~mallorymarcot/unifield-server/us-3837
Merge into: lp:unifield-server
Diff against target: 15 lines (+2/-3)
1 file modified
bin/addons/purchase/purchase_order_line.py (+2/-3)
To merge this branch: bzr merge lp:~mallorymarcot/unifield-server/us-3837
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+335168@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
1=== modified file 'bin/addons/purchase/purchase_order_line.py'
2--- bin/addons/purchase/purchase_order_line.py 2017-11-26 18:37:44 +0000
3+++ bin/addons/purchase/purchase_order_line.py 2017-12-13 16:51:34 +0000
4@@ -1188,9 +1188,8 @@
5 for line in self.browse(cr, uid, ids, context=context):
6 new_vals = vals.copy()
7 # check qty
8- if vals.get('product_qty', line.product_qty) <= 0.0 and \
9- not line.order_id.rfq_ok and \
10- 'noraise' not in context and line.state != 'cancel':
11+ if vals.get('product_qty', line.product_qty) <= 0.0 and not line.order_id.rfq_ok and 'noraise' not in context and \
12+ line.state != 'cancel' and context.get('button', '') != 'cancel_only_pol' and vals.get('state', '') != 'cancel':
13 raise osv.except_osv(
14 _('Error'),
15 _('You can not have an order line with a negative or zero quantity')

Subscribers

People subscribed via source and target branches