[MIG] Changed User For Test Module

This commit is contained in:
Jared Self
2020-11-18 11:51:51 -07:00
parent df48365ca1
commit 04eb5ad0a0
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
'name': 'Sale Credit Limit',
'summary': 'Uses credit limit on Partners to warn salespeople if they are over their limit.',
'version': '13.0.1.0.0',
'version': '14.0.1.0.0',
'author': "Hibou Corp.",
'category': 'Sale',
'license': 'AGPL-3',

View File

@@ -8,8 +8,9 @@ class TestSaleCreditException(TestSaleException):
super(TestSaleCreditException, self).setUp()
def test_sale_order_credit_limit_exception(self):
admin_user = self.env.ref('base.user_admin')
self.sale_exception_confirm = self.env['sale.exception.confirm']
exception = self.env.ref('sale_credit_limit.excep_sale_credit_limit')
exception = self.env.ref('sale_credit_limit.excep_sale_credit_limit').with_user(admin_user)
exception.active = True
partner = self.env.ref('base.res_partner_12')
partner.credit_limit = 100.00