mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
fix flake8 warnings
This commit is contained in:
committed by
aliciagarzo
parent
424f7cd8f2
commit
3a212bc454
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user