diff options
| author | Jorge Pinna Puissant <jpp@odoo.com> | 2019-01-17 13:56:15 +0000 |
|---|---|---|
| committer | Jorge Pinna Puissant <jpp@odoo.com> | 2019-01-17 14:25:25 +0000 |
| commit | e6b5a0e2ebe807ff14492c688c3a57bfad6f8e1b (patch) | |
| tree | 5c833a08b9192f9417576df01b53ac595d233fcb /addons/payment/wizards | |
| parent | 8865d631341fc3b6f52015ffd9296203c2d47713 (diff) | |
[FIX] payment: Acquired deployed in production
Before this commit, in the config bar (Sales or Invoicing) when you configure a payment
acquirer, it was deployed in test mode, and not in production mode. Note that, the config
bar wizard asks for the production credentials.
Now, when you configure a payment acquirer, from the config bar, the acquirer is deployed
directly in production mode.
opw-1918412
closes odoo/odoo#30319
Diffstat (limited to 'addons/payment/wizards')
| -rw-r--r-- | addons/payment/wizards/payment_acquirer_onboarding_wizard.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/payment/wizards/payment_acquirer_onboarding_wizard.py b/addons/payment/wizards/payment_acquirer_onboarding_wizard.py index 57f271fdffb..3479fc6f8ac 100644 --- a/addons/payment/wizards/payment_acquirer_onboarding_wizard.py +++ b/addons/payment/wizards/payment_acquirer_onboarding_wizard.py @@ -114,12 +114,14 @@ class PaymentWizard(models.TransientModel): 'paypal_seller_account': self.paypal_seller_account, 'paypal_pdt_token': self.paypal_pdt_token, 'website_published': True, + 'environment': 'prod', }) if self.payment_method == 'stripe': new_env.ref('payment.payment_acquirer_stripe').write({ 'stripe_secret_key': self.stripe_secret_key, 'stripe_publishable_key': self.stripe_publishable_key, 'website_published': True, + 'environment': 'prod', }) if self.payment_method == 'manual': manual_acquirer = self._get_manual_payment_acquirer(new_env) @@ -131,6 +133,7 @@ class PaymentWizard(models.TransientModel): manual_acquirer.name = self.manual_name manual_acquirer.post_msg = self.manual_post_msg manual_acquirer.website_published = True + manual_acquirer.environment = 'prod' journal = manual_acquirer.journal_id if journal: |
