Payment Term Restriction

account_payment_term_restriction
REPOSITORY
REPOSITORYOCA/account-payment
GIT
GIThttps://github.com/OCA/account-payment.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-payment/tree/16.0/account_payment_term_restriction
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, RicardCForgeFlow
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_payment_term_form account.payment.term.form - account_payment_term_restriction account.payment.term xpath Inherits account.view_payment_term_form
view_payment_term_tree account.payment.term.tree - account_payment_term_restriction account.payment.term field Inherits account.view_payment_term_tree
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • applicable_on Selection
    default=<expr> selection='_selection_applicable_on'
Public methods (3)
  • check_not_applicable(self, applicable_on, record)
    :return: bool: returns True if all checks are passed correctly, False if the pre-check for the values used in the validation fails. Raises a ValidationError if the Payment Term doesn't comply with the checks.
  • get_purchase_applicable_on(self)
    @api.model
  • get_sale_applicable_on(self)
    @api.model
REPOSITORY
REPOSITORYOCA/account-payment
GIT
GIThttps://github.com/OCA/account-payment.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-payment/tree/15.0/account_payment_term_restriction
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, JasminSForgeFlow
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:41
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_payment_term_form account.payment.term.form - account_payment_term_restriction account.payment.term xpath Inherits account.view_payment_term_form
view_payment_term_tree account.payment.term.tree - account_payment_term_restriction account.payment.term field Inherits account.view_payment_term_tree
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • applicable_on Selection
    default=<expr> selection='_selection_applicable_on'
Public methods (3)
  • check_not_applicable(self, applicable_on, record)
    :return: bool: returns True if all checks are passed correctly, False if the pre-check for the values used in the validation fails. Raises a ValidationError if the Payment Term doesn't comply with the checks.
  • get_purchase_applicable_on(self)
    @api.model
  • get_sale_applicable_on(self)
    @api.model
REPOSITORY
REPOSITORYOCA/account-payment
GIT
GIThttps://github.com/OCA/account-payment.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-payment/tree/13.0/account_payment_term_restriction
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ForgeFlow
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ForgeFlow
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, GuillemCForgeFlow
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_payment_term_form account.payment.term.form - account_payment_term_restriction account.payment.term xpath Inherits account.view_payment_term_form
view_payment_term_tree account.payment.term.tree - account_payment_term_restriction account.payment.term field Inherits account.view_payment_term_tree
Models touched (2)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • applicable_on Selection
    default=<expr> selection='_selection_applicable_on' string='Applicable On'
Public methods (3)
  • check_not_applicable(self, applicable_on, record)
    :return: bool: returns True if all checks are passed correctly, False if the pre-check for the values used in the validation fails. Raises a ValidationError if the Payment Term doesn't comply with the checks.
  • get_purchase_applicable_on(self)
    @api.model
  • get_sale_applicable_on(self)
    @api.model