Skip to content
Permalink
Browse files

purchase_requisition

  • Loading branch information...
tivisse committed Oct 9, 2019
1 parent 77c1f55 commit f40acc977fcd92967e7ebb8c5f2bc3a0513cfe8c
@@ -178,7 +178,6 @@ def test_expense_from_email(self):
self.assertEqual(expense.product_id, air_ticket)
self.assertEqual(expense.tax_ids.ids, [])
self.assertEqual(expense.total_amount, 9876.0)
# import pdb; pdb.set_trace()
self.assertTrue(expense.employee_id in user_marc.employee_ids)

def test_expense_from_email_without_product(self):
@@ -650,7 +650,6 @@ def action_confirm(self):
self._check_company()
for production in self:
if not production.move_raw_ids:
import pdb; pdb.set_trace()
raise UserError(_("Add some materials to consume before marking this MO as to do."))
for move_raw in production.move_raw_ids:
move_raw.write({
@@ -35,7 +35,7 @@ def setUpClass(cls):

cls.product_09 = cls.env['product.product'].create({
'name': 'Pedal Bin',
'categ_id': cls.env.ref('product.product_category_5').id,
'categ_id': cls.env.ref('product.product_category_all').id,
'standard_price': 10.0,
'list_price': 47.0,
'type': 'consu',
@@ -46,7 +46,7 @@ def setUpClass(cls):

cls.product_13 = cls.env['product.product'].create({
'name': 'Corner Desk Black',
'categ_id': cls.env.ref('product.product_category_5').id,
'categ_id': cls.env.ref('product.product_category_all').id,
'standard_price': 78.0,
'list_price': 85.0,
'type': 'consu',
@@ -64,5 +64,7 @@ def setUpClass(cls):
'product_uom_id': cls.product_uom_id.id})]
})

cls.res_partner_1 = cls.env.ref('base.res_partner_1')
cls.res_partner_1 = cls.env['res.partner'].create({
'name': 'Wood Corner',
})
cls.env.user.company_id.currency_id = cls.env.ref("base.USD").id

0 comments on commit f40acc9

Please sign in to comment.
You can’t perform that action at this time.