[REV] sale_expense, sale: revert wrong fixes on tests, and wrong fix of broken test's fixes that broke tests instead of fixing them... bummer

This reverts commit da32c9ce9d.
This reverts commit 9367fe3cd3.
This commit is contained in:
qdp-odoo
2017-02-15 16:29:10 +01:00
parent 929d983575
commit 982816ed7b
3 changed files with 0 additions and 10 deletions
@@ -24,9 +24,6 @@ class TestOnchangeProductId(TransactionCase):
self.pricelist_model = self.env['product.pricelist']
def test_onchange_product_id(self):
# Ensure the computation are done with the USD currency
base_company = self.env.ref('base.main_company')
base_company.currency_id = self.env.ref('base.USD')
uom_id = self.product_uom_model.search([('name', '=', 'Unit(s)')])[0]
pricelist = self.pricelist_model.search([('name', '=', 'Public Pricelist')])[0].copy()
-4
View File
@@ -104,10 +104,6 @@ class TestSaleOrder(TestSale):
def test_cost_invoicing(self):
""" Test confirming a vendor invoice to reinvoice cost on the so """
# Ensure the computation are done with the USD currency
base_company = self.env.ref('base.main_company')
base_company.currency_id = self.env.ref('base.USD')
serv_cost = self.env.ref('product.service_cost_01')
prod_gap = self.env.ref('product.product_product_1')
so = self.env['sale.order'].create({
@@ -7,9 +7,6 @@ from odoo.addons.sale.tests.test_sale_common import TestSale
class TestSaleExpense(TestSale):
def test_sale_expense(self):
""" Test the behaviour of sales orders when managing expenses """
# Ensure the computation are done with the USD currency
base_company = self.env.ref('base.main_company')
base_company.currency_id = self.env.ref('base.USD')
# create a so with a product invoiced on delivery
prod = self.env.ref('product.product_product_1')
so = self.env['sale.order'].create({