Browse Source

[FIX] 'pos_order_pricelist_change' flake8;

pull/4/head
Sylvain LE GAL 10 years ago
parent
commit
46ee88304e
  1. 2
      pos_order_pricelist_change/__openerp__.py
  2. 16
      pos_order_pricelist_change/tests/pos_order_pricelist_change.py

2
pos_order_pricelist_change/__openerp__.py

@ -46,7 +46,7 @@ Copyright, Authors and Licence:
'license': 'AGPL-3', 'license': 'AGPL-3',
'depends': [ 'depends': [
'point_of_sale', 'point_of_sale',
],
],
'data': [ 'data': [
'view/view.xml', 'view/view.xml',
], ],

16
pos_order_pricelist_change/tests/pos_order_pricelist_change.py

@ -53,7 +53,7 @@ class TestPosOrderPricelistChange(TransactionCase):
# Opening Session # Opening Session
self.ps_obj.create(cr, uid, { self.ps_obj.create(cr, uid, {
'config_id': pc_id, 'config_id': pc_id,
})
})
# create Pos Order # create Pos Order
po_id = self.po_obj.create(cr, uid, { po_id = self.po_obj.create(cr, uid, {
@ -63,7 +63,7 @@ class TestPosOrderPricelistChange(TransactionCase):
'product_id': pp_usb_id, 'product_id': pp_usb_id,
'qty': 1, 'qty': 1,
}]], }]],
})
})
pp_usb = self.pp_obj.browse(cr, uid, pp_usb_id) pp_usb = self.pp_obj.browse(cr, uid, pp_usb_id)
po = self.po_obj.browse(cr, uid, po_id) po = self.po_obj.browse(cr, uid, po_id)
@ -91,7 +91,7 @@ class TestPosOrderPricelistChange(TransactionCase):
# Opening Session # Opening Session
self.ps_obj.create(cr, uid, { self.ps_obj.create(cr, uid, {
'config_id': pc_id, 'config_id': pc_id,
})
})
# create Pos Order # create Pos Order
po_id = self.po_obj.create(cr, uid, { po_id = self.po_obj.create(cr, uid, {
@ -101,7 +101,7 @@ class TestPosOrderPricelistChange(TransactionCase):
'product_id': pp_usb_id, 'product_id': pp_usb_id,
'qty': 1, 'qty': 1,
}]], }]],
})
})
pp_usb = self.pp_obj.browse(cr, uid, pp_usb_id) pp_usb = self.pp_obj.browse(cr, uid, pp_usb_id)
po = self.po_obj.browse(cr, uid, po_id) po = self.po_obj.browse(cr, uid, po_id)
@ -128,7 +128,7 @@ class TestPosOrderPricelistChange(TransactionCase):
# Opening Session # Opening Session
self.ps_obj.create(cr, uid, { self.ps_obj.create(cr, uid, {
'config_id': pc_id, 'config_id': pc_id,
})
})
# create Pos Order # create Pos Order
po_id = self.po_obj.create(cr, uid, { po_id = self.po_obj.create(cr, uid, {
@ -137,7 +137,7 @@ class TestPosOrderPricelistChange(TransactionCase):
'product_id': pp_usb_id, 'product_id': pp_usb_id,
'qty': 1, 'qty': 1,
}]], }]],
})
})
po = self.po_obj.browse(cr, uid, po_id) po = self.po_obj.browse(cr, uid, po_id)
res = self.po_obj.onchange_pricelist_id( res = self.po_obj.onchange_pricelist_id(
@ -169,7 +169,7 @@ class TestPosOrderPricelistChange(TransactionCase):
# Opening Session # Opening Session
self.ps_obj.create(cr, uid, { self.ps_obj.create(cr, uid, {
'config_id': pc_id, 'config_id': pc_id,
})
})
# create Pos Order # create Pos Order
po_id = self.po_obj.create(cr, uid, { po_id = self.po_obj.create(cr, uid, {
@ -178,7 +178,7 @@ class TestPosOrderPricelistChange(TransactionCase):
'product_id': pp_usb_id, 'product_id': pp_usb_id,
'qty': 1, 'qty': 1,
}]], }]],
})
})
po = self.po_obj.browse(cr, uid, po_id) po = self.po_obj.browse(cr, uid, po_id)
res = self.po_obj.onchange_pricelist_id( res = self.po_obj.onchange_pricelist_id(

Loading…
Cancel
Save