diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index ea4aa8a72fc..6fed4e34dd6 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -78,6 +78,10 @@ class PaymentAcquirer(models.Model): journal_id = fields.Many2one( 'account.journal', 'Payment Journal', help="Account journal used for automatic payment reconciliation.") + country_ids = fields.Many2many( + 'res.country', 'payment_country_rel', + 'payment_id', 'country_id', 'Countries', + help="This payment gateway is available for selected countries. If none is selected it is available for all countries.") pre_msg = fields.Html( 'Help Message', translate=True, diff --git a/addons/payment/views/payment_views.xml b/addons/payment/views/payment_views.xml index a8677057aff..b652d8d9a3d 100644 --- a/addons/payment/views/payment_views.xml +++ b/addons/payment/views/payment_views.xml @@ -82,6 +82,7 @@ +