projects
/
odoo
/
odoo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[MERGE]: Merge with lp:openobject-trunk-dev-addons2
[odoo/odoo.git]
/
addons
/
sale_margin
/
sale_margin.py
diff --git
a/addons/sale_margin/sale_margin.py
b/addons/sale_margin/sale_margin.py
index
3a0e09a
..
fdf7eaf
100644
(file)
--- a/
addons/sale_margin/sale_margin.py
+++ b/
addons/sale_margin/sale_margin.py
@@
-36,7
+36,7
@@
class sale_order_line(osv.osv):
def _product_margin(self, cr, uid, ids, field_name, arg, context=None):
res = {}
- for line in self.browse(cr, uid, ids):
+ for line in self.browse(cr, uid, ids, context=context):
res[line.id] = 0
if line.product_id:
if line.purchase_price: