mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] Changed User For Test Module
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
'name': 'Sale Credit Limit',
|
'name': 'Sale Credit Limit',
|
||||||
'summary': 'Uses credit limit on Partners to warn salespeople if they are over their 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.",
|
'author': "Hibou Corp.",
|
||||||
'category': 'Sale',
|
'category': 'Sale',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
|||||||
@@ -8,8 +8,9 @@ class TestSaleCreditException(TestSaleException):
|
|||||||
super(TestSaleCreditException, self).setUp()
|
super(TestSaleCreditException, self).setUp()
|
||||||
|
|
||||||
def test_sale_order_credit_limit_exception(self):
|
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']
|
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
|
exception.active = True
|
||||||
partner = self.env.ref('base.res_partner_12')
|
partner = self.env.ref('base.res_partner_12')
|
||||||
partner.credit_limit = 100.00
|
partner.credit_limit = 100.00
|
||||||
|
|||||||
Reference in New Issue
Block a user