Product Restrict Payment Acquirer

product_restrict_payment_acquirer
REPOSITORY
REPOSITORYOCA/account-payment
GIT
GIThttps://github.com/OCA/account-payment.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-payment/tree/17.0/product_restrict_payment_acquirer
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Cetmix
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Cetmix
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Mohajiro
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - partner_restrict_payment_acquirer
odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - account_payment
    - account
    - onboarding
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - payment
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module extends **partner_restrict_payment_acquirer** module
functionality.

It allows to restrict payment acquirers based on products selected in
Sales Order lines.

Only selected acquirers will be available for on-line payment in portal.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_template_acquirer_view_form product.template.form.inherit.sale.product product.template xpath Inherits product.product_template_only_form_view
res_config_settings_view_form res.config.settings.view.form.inherit.sale res.config.settings xpath Inherits base.res_config_settings_view_form
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • allowed_payment_provider_ids Many2many → payment.provider
    column1='product_id' column2='provider_id' comodel_name='payment.provider' copy=False domain=[('state', 'in', ['enabled', 'test'])] relation='product_payment_provider_rel' string='Allowed Payment Providers'
Public methods (0)

No public methods.

New fields (1)
  • product_acquirer_restriction_mode Selection
    config_parameter='product_acquirer_settings.product_acquirer_restriction_mode' selection=[('first', 'First Product'), ('all', 'All Products')]
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/account-payment
GIT
GIThttps://github.com/OCA/account-payment.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-payment/tree/14.0/product_restrict_payment_acquirer
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Cetmix
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Cetmix
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Bearnard21
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - partner_restrict_payment_acquirer
odoo/odoo:
    - sale
    - sales_team
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - payment
    - account
    - product
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - utm
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
product_template_acquirer_view_form product.template.form.inherit.sale.product product.template xpath Inherits product.product_template_only_form_view
res_config_settings_view_form res.config.settings.view.form.inherit.sale res.config.settings xpath Inherits base.res_config_settings_view_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • get_allowed_acquirers(self, acquirers, invoice_id=None, order_id=None)
    @api.model

New fields (1)
  • allowed_product_acquirer_ids Many2many → payment.acquirer
    column1='product_id' column2='acquirer_id' comodel_name='payment.acquirer' domain=[('state', 'in', ['enabled', 'test'])] relation='product_acquirer_allowed_rel' string='Allowed Acquirers'
Public methods (0)

No public methods.

New fields (1)
  • product_acquirer_restriction_mode Selection
    selection=[('first', 'First Product'), ('all', 'All Products')]
Public methods (2)
  • get_values(self)
    @api.model
  • set_values(self)