Account Payment Term Partner Holiday

account_payment_term_partner_holiday
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_partner_holiday
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, LauraCForgeFlow, Angel Rivas
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - account_payment_term_extension
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_res_partner_form_holiday_ids res.partner.holiday_ids res.partner field Inherits account.view_partner_property_form
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (1)
  • holiday_ids One2many → res.partner.holiday
    auto_join=True comodel_name='res.partner.holiday' copy=True inverse_name='partner_id' string='Payment Terms Holidays'
Public methods (1)
  • is_date_in_holiday(self, date)

New fields (5)
  • day_from Selection
    required=True selection='_selection_days'
  • day_to Selection
    required=True selection='_selection_days'
  • month_from Selection
    required=True selection='_selection_months'
  • month_to Selection
    required=True selection='_selection_months'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' copy=False index=True ondelete='cascade' required=True string='Partner'
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/15.0/account_payment_term_partner_holiday
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA Transbot, Weblate, OCA-git-bot, David, oca-ci, Luis D. Lafaurie
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:41
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - account_payment_term_extension
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - purchase
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_res_partner_form_holiday_ids res.partner.holiday_ids res.partner field Inherits account.view_partner_property_form
Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • action_post(self)
    Ensure that the payment terms are up to date when we confirm the move

New fields (0)

No new fields.

Public methods (1)
  • compute(self, value, date_ref=False, currency=None)
    Compute the due date taking into account the holiday periods set in the partner. Once an initial date resulting of the payment term is computed, compute the first available date after that. Then, apply_payment_days() and apply_holidays() to prevent incompatibilities.

New fields (1)
  • holiday_ids One2many → res.partner.holiday
    auto_join=True comodel_name='res.partner.holiday' copy=True inverse_name='partner_id' string='Payment Terms Holidays'
Public methods (1)
  • is_date_in_holiday(self, date)

New fields (5)
  • day_from Selection
    required=True selection='_selection_days'
  • day_to Selection
    required=True selection='_selection_days'
  • month_from Selection
    required=True selection='_selection_months'
  • month_to Selection
    required=True selection='_selection_months'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' copy=False index=True ondelete='cascade' required=True string='Partner'
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/account_payment_term_partner_holiday
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSWeblate, oca-ci, Antônio Neto
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:
    - account_payment_term_extension
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 (1)
XML IDNameModelTypeStatus
view_res_partner_form_holiday_ids res.partner.holiday_ids res.partner field Inherits account.view_partner_property_form
Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • action_post(self)
    Inject a context for getting the partner when computing payment term.

New fields (0)

No new fields.

Public methods (1)
  • compute(self, value, date_ref=False, currency=None)
    Compute the due date taking into account the holiday periods set in the partner. Once an initial date resulting of the payment term is computed, compute the first available date after that. Then, apply_payment_days() and apply_holidays() to prevent incompatibilities.

New fields (1)
  • holiday_ids One2many → res.partner.holiday
    auto_join=True comodel_name='res.partner.holiday' copy=True inverse_name='partner_id' string='Payment Terms Holidays'
Public methods (1)
  • is_date_in_holiday(self, date)

New fields (5)
  • day_from Selection
    required=True selection='_selection_days'
  • day_to Selection
    required=True selection='_selection_days'
  • month_from Selection
    required=True selection='_selection_months'
  • month_to Selection
    required=True selection='_selection_months'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' copy=False index=True ondelete='cascade' required=True string='Partner'
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/13.0/account_payment_term_partner_holiday
VERSION
VERSION 1.2.1
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA Transbot, Víctor Martínez, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - account_payment_term_extension
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 (1)
XML IDNameModelTypeStatus
view_res_partner_form_holiday_ids res.partner.holiday_ids res.partner field Inherits account.view_partner_property_form
Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • action_post(self)
    Inject a context for getting the partner when computing payment term. The trade-off is that we should split the call to super record per record, but it shouldn't impact in performance.

New fields (0)

No new fields.

Public methods (1)
  • compute(self, value, date_ref=False, currency=None)
    Compute the due date taking into account the holiday periods set in the partner. Once an initial date resulting of the payment term is computed, compute the first available date after that. Then, apply_payment_days() and apply_holidays() to prevent incompatibilities.

New fields (1)
  • holiday_ids One2many → res.partner.holiday
    auto_join=True comodel_name='res.partner.holiday' copy=True inverse_name='partner_id' string='Payment Terms Holidays'
Public methods (1)
  • is_date_in_holiday(self, date)

New fields (5)
  • day_from Selection
    required=True selection='_selection_days' string='Day from'
  • day_to Selection
    required=True selection='_selection_days' string='Day to'
  • month_from Selection
    required=True selection='_selection_months' string='Month from'
  • month_to Selection
    required=True selection='_selection_months' string='Month to'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' copy=False index=True ondelete='cascade' required=True string='Partner'
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/12.0/account_payment_term_partner_holiday
VERSION
VERSION 2.0.0
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSTecnativa, Odoo Community Association (OCA)
MAINTAINERS
MAINTAINERSTecnativa, Odoo Community Association (OCA)
COMMITTERS
COMMITTERSOCA Transbot, Víctor Martínez, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:24
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-invoicing:
    - account_payment_term_extension
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - http_routing
    - digest
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_res_partner_form_holiday_ids res.partner.holiday_ids res.partner field Inherits account.view_partner_property_form
Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • action_move_create(self)
    Inject a context for getting the partner when computing payment term. The trade-off is that we should split the call to super record per record, but it shouldn't impact in performance.

New fields (0)

No new fields.

Public methods (1)
  • compute(self, value, date_ref=False)
    @api.one
    Compute the due date taking into account the holiday periods set in the partner. Once an initial date resulting of the payment term is computed, compute the first available date after that. Then, apply_payment_days() and apply_holidays() to prevent incompatibilities.

New fields (1)
  • holiday_ids One2many → res.partner.holiday
    auto_join=True comodel_name='res.partner.holiday' copy=True inverse_name='partner_id' string='Payment Terms Holidays'
Public methods (1)
  • is_date_in_holiday(self, date)

New fields (5)
  • day_from Selection
    required=True selection='_selection_days' string='Day from'
  • day_to Selection
    required=True selection='_selection_days' string='Day to'
  • month_from Selection
    required=True selection='_selection_months' string='Month from'
  • month_to Selection
    required=True selection='_selection_months' string='Month to'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' copy=False index=True ondelete='cascade' required=True string='Partner'
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/account-payment
PULL REQUEST
PULL REQUESTMIG 18.0 account_payment_term_partner_holiday (#951)
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/account-payment
PULL REQUEST
PULL REQUEST[17.0][MIG] account_payment_term_partner_holiday: Migration to 17.0 (#811)