[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 commitda32c9ce9d. This reverts commit9367fe3cd3.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user