From 240df8225c7429a003fbfe789d7b9759ba8fecbb Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Tue, 29 Jan 2019 14:14:40 +0000 Subject: [PATCH] [FIX] payment_paypal: tests To avoid trouble when the company name is changed in demo data, we use the company name variable in the test closes odoo/odoo#30612 --- addons/payment_paypal/tests/test_paypal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/payment_paypal/tests/test_paypal.py b/addons/payment_paypal/tests/test_paypal.py index e70129f9333..b8158508a2a 100644 --- a/addons/payment_paypal/tests/test_paypal.py +++ b/addons/payment_paypal/tests/test_paypal.py @@ -53,7 +53,7 @@ class PaypalForm(PaypalCommon): form_values = { 'cmd': '_xclick', 'business': 'tde+paypal-facilitator@odoo.com', - 'item_name': 'YourCompany: test_ref0', + 'item_name': '%s: test_ref0' % (self.paypal.company_id.name), 'item_number': 'test_ref0', 'first_name': 'Norbert', 'last_name': 'Buyer',