Merge lp:~camptocamp/product-extra-addons/openerp6.1-module-fix-context-init into lp:product-extra-addons/oerp6.1-stable

Proposed by Alexandre Fayolle - camptocamp
Status: Merged
Merged at revision: 68
Proposed branch: lp:~camptocamp/product-extra-addons/openerp6.1-module-fix-context-init
Merge into: lp:product-extra-addons/oerp6.1-stable
Diff against target: 12 lines (+1/-1)
1 file modified
product_multi_price/product.py (+1/-1)
To merge this branch: bzr merge lp:~camptocamp/product-extra-addons/openerp6.1-module-fix-context-init
Reviewer Review Type Date Requested Status
Sébastien BEAU - http://www.akretion.com Pending
Review via email: mp+120511@code.launchpad.net

Description of the change

use "is None" when testing the context

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 'product_multi_price/product.py'
2--- product_multi_price/product.py 2012-08-10 07:52:39 +0000
3+++ product_multi_price/product.py 2012-08-21 07:57:20 +0000
4@@ -187,7 +187,7 @@
5 return super(product_product, self).write(cr, uid, ids, vals, context=context)
6
7 def read(self, cr, uid, ids, fields=None, context=None, load='_classic_read'):
8- if not context:
9+ if context is None:
10 context={}
11 read = False
12 if not fields:

Subscribers

People subscribed via source and target branches