Skip to content

Instantly share code, notes, and snippets.

@eLBati
Created November 9, 2011 13:22
Show Gist options
  • Save eLBati/1351402 to your computer and use it in GitHub Desktop.
Save eLBati/1351402 to your computer and use it in GitHub Desktop.
erp@erp:~/production/addons$ bzr diff
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py 2011-10-12 08:31:39 +0000
+++ purchase/purchase.py 2011-10-13 13:21:57 +0000
@@ -706,14 +706,6 @@
'uom': uom,
'date': date_order,
})[pricelist]
- if price is False:
- warning = {
- 'title': 'No valid pricelist line found !',
- 'message':
- "Couldn't find a pricelist line matching this product and quantity.\n"
- "You have to change either the product, the quantity or the pricelist."
- }
- res.update({'warning': warning})
dt = (datetime.now() + relativedelta(days=int(seller_delay) or 0.0)).strftime('%Y-%m-%d %H:%M:%S')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment