Skip to content

Commit

Permalink
[IMP] Remove unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
m1k3lm committed Mar 23, 2016
1 parent c821cc6 commit 3376ac2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions addons/product/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,10 +746,7 @@ def _get_uom_id(self, cr, uid, *args):
def _check_uom(self, cr, uid, ids, context=None):
for supplier_info in self.browse(cr, uid, ids, context=context):
if supplier_info.product_uom and supplier_info.product_uom.category_id.id <> supplier_info.product_id.uom_id.category_id.id:
cr.execute('select uom_id from product_template where id = %s',(supplier_info.product_id.id,))
res = cr.fetchone()
cr.execute('update product_supplierinfo set product_uom = %s where product_id = %s ',(res[0],supplier_info.product_id.id,))
return True
return False
return True

_constraints = [
Expand Down
1 change: 0 additions & 1 deletion bin/openupgrade/openupgrade_log.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
from openupgradelib import openupgrade_tools
from openupgradelib.openupgrade_tools import table_exists

def log_xml_id(cr, module, xml_id):
Expand Down

0 comments on commit 3376ac2

Please sign in to comment.