Account Cash Discount Payment

account_cash_discount_payment
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_cash_discount_payment
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSoca-travis, Weblate, OCA-git-bot, fshah, geomer198
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_cash_discount_base
OCA/bank-payment:
    - account_payment_order_grouped_output
    - account_payment_order
    - account_payment_partner
    - account_payment_mode
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_iban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES lxml
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
account_move_line_tree_view account.move.line.tree (in account_cash_discount_payment) account.move.line field Inherits account.view_move_line_tree
account_payment_line_create_form_view account.payment.line.create.form (in account_cash_discount_payment) account.payment.line.create field Inherits account_payment_order.account_payment_line_create_form
account_payment_line_form_view account.payment.line.form (account_cash_discount_payment) account.payment.line field Inherits account_payment_order.account_payment_line_form
account_payment_line_tree_view account.payment.line.tree (account_cash_discount_payment) account.payment.line field Inherits account_payment_order.account_payment_line_tree
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • discount_amount Monetary
    readonly=True related='move_id.discount_amount'
  • discount_due_date Date
    readonly=True related='move_id.discount_due_date'
Public methods (0)

No public methods.

New fields (5)
  • discount_amount Monetary
    readonly=True related='move_line_id.move_id.real_discount_amount'
  • discount_due_date Date
    readonly=True related='move_line_id.move_id.discount_due_date'
  • pay_with_discount Boolean
    default=False
  • pay_with_discount_allowed Boolean
    compute='_compute_pay_with_discount_allowed'
  • toggle_pay_with_discount_allowed Boolean
    compute='_compute_toggle_pay_with_discount_allowed'
Public methods (1)
  • toggle_pay_with_discount(self)

New fields (2)
  • cash_discount_date Date
    default=<expr> help='Search lines with a discount due date which is posterior to the selected date.'
  • date_type Selection
    ondelete={'discount_due_date': 'cascade'} selection_add=[('discount_due_date', _('Discount Due Date'))]
Public methods (1)
  • move_line_filters_change(self)
    @api.onchange('date_type', 'move_date', 'due_date', 'journal_ids', 'invoice', 'target_move', 'allow_blocked', 'payment_mode', 'cash_discount_date')
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_cash_discount_payment
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, François Honoré, oca-ci
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_cash_discount_base
OCA/bank-payment:
    - account_payment_order
    - account_payment_partner
    - account_payment_mode
odoo/odoo:
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_iban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES lxml
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
account_move_line_tree_view account.move.line.tree (in account_cash_discount_payment) account.move.line field Inherits account.view_move_line_tree
account_payment_line_create_form_view account.payment.line.create.form (in account_cash_discount_payment) account.payment.line.create field Inherits account_payment_order.account_payment_line_create_form
account_payment_line_form_view account.payment.line.form (account_cash_discount_payment) account.payment.line field Inherits account_payment_order.account_payment_line_form
account_payment_line_tree_view account.payment.line.tree (account_cash_discount_payment) account.payment.line field Inherits account_payment_order.account_payment_line_tree
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • discount_amount Monetary
    readonly=True related='move_id.discount_amount'
  • discount_due_date Date
    readonly=True related='move_id.discount_due_date'
Public methods (0)

No public methods.

New fields (5)
  • discount_amount Monetary
    readonly=True related='move_line_id.move_id.real_discount_amount'
  • discount_due_date Date
    readonly=True related='move_line_id.move_id.discount_due_date'
  • pay_with_discount Boolean
    default=False
  • pay_with_discount_allowed Boolean
    compute='_compute_pay_with_discount_allowed'
  • toggle_pay_with_discount_allowed Boolean
    compute='_compute_toggle_pay_with_discount_allowed'
Public methods (1)
  • toggle_pay_with_discount(self)

New fields (2)
  • cash_discount_date Date
    default=<expr> help='Search lines with a discount due date which is posterior to the selected date.'
  • date_type Selection
    selection_add=[('discount_due_date', _('Discount Due Date'))]
Public methods (1)
  • move_line_filters_change(self)
    @api.onchange('date_type', 'move_date', 'due_date', 'journal_ids', 'invoice', 'target_move', 'allow_blocked', 'payment_mode', 'cash_discount_date')
REPOSITORY
REPOSITORYOCA/account-payment
GIT
GIThttps://github.com/OCA/account-payment.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/account-payment/tree/10.0/account_cash_discount_payment
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYAccounting
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSoca-travis, OCA-git-bot, Benjamin Willig
WEBSITE
WEBSITEhttps://github.com/acsone/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:01
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/account-payment:
    - account_cash_discount_base
OCA/bank-payment:
    - account_payment_order
    - account_payment_partner
    - account_payment_mode
odoo/odoo:
    - account
    - base_setup
    - base
    - web_kanban
    - web
    - product
    - decimal_precision
    - mail
    - bus
    - web_tour
    - report
    - analytic
    - web_planner
    - base_iban
    - document
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
account_move_line_tree_view account.move.line.tree (in account_cash_discount_payment) account.move.line field Inherits account.view_move_line_tree
account_payment_line_create_form_view account.payment.line.create.form (in account_cash_discount_payment) account.payment.line.create field Inherits account_payment_order.account_payment_line_create_form
account_payment_line_form_view account.payment.line.form (account_cash_discount_payment) account.payment.line field Inherits account_payment_order.account_payment_line_form
account_payment_line_tree_view account.payment.line.tree (account_cash_discount_payment) account.payment.line field Inherits account_payment_order.account_payment_line_tree
Models touched (4)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • discount_amount Monetary
    readonly=True related='invoice_id.discount_amount'
  • discount_due_date Date
    readonly=True related='invoice_id.discount_due_date'
Public methods (0)

No public methods.

New fields (5)
  • discount_amount Monetary
    readonly=True related='move_line_id.invoice_id.real_discount_amount'
  • discount_due_date Date
    readonly=True related='move_line_id.invoice_id.discount_due_date'
  • pay_with_discount Boolean
    default=False
  • pay_with_discount_allowed Boolean
    compute='_compute_pay_with_discount_allowed'
  • toggle_pay_with_discount_allowed Boolean
    compute='_compute_toggle_pay_with_discount_allowed'
Public methods (1)
  • toggle_pay_with_discount(self)
    @api.multi

New fields (2)
  • cash_discount_date Date
    default=<expr> help='Search lines with a discount due date which is posterior to the selected date.'
  • date_type Selection
    selection_add=[('discount_due_date', _('Discount Due Date'))]
Public methods (1)
  • move_line_filters_change(self)
    @api.onchange('date_type', 'move_date', 'due_date', 'journal_ids', 'invoice', 'target_move', 'allow_blocked', 'payment_mode', 'cash_discount_date')