fix flake8 warnings

This commit is contained in:
Alexandre Fayolle
2014-09-08 15:19:59 +02:00
committed by aliciagarzo
parent 424f7cd8f2
commit 3a212bc454
2 changed files with 2 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ class ProductTemplate(models.Model):
}
return action_dict
class ProductProduct(models.Model):
_inherit = 'product.product'
@@ -76,7 +77,7 @@ class ProductProduct(models.Model):
ref = 'stock_reserve.action_stock_reservation_tree'
product_id = self._ids[0]
action_dict = self.product_tmpl_id._get_act_window_dict(ref)
action_dict['domain'] = ("[('product_id','='," + str(product_id) + ")]")
action_dict['domain'] = "[('product_id','=', %s)]" % product_id
action_dict['context'] = {
'search_default_draft': 1,
'search_default_reserved': 1

View File

@@ -88,7 +88,6 @@ class StockReservation(models.Model):
def _default_picking_type_id(self):
""" Search for an internal picking type
"""
move_obj = self.env['stock.move']
type_obj = self.env['stock.picking.type']
types = type_obj.search([('code', '=', 'internal')], limit=1)