Account Payment Terms Discount

account_payment_term_discount
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_discount
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators
COMMITTERS
COMMITTERSJordi Ballester Alomar, Weblate, OCA-git-bot, oca-ci, Christopher Ormaza
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:56
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - 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 (6)
XML IDNameModelTypeStatus
invoice_form_discounts account.invoice.form.discount account.move field Inherits account.view_move_form
invoice_tree_discount account.invoice.tree.discount account.move field Inherits account.view_invoice_tree
product_template_form_view_exclude_shipping product_template.form.view.exclude.shipping product.template xpath Inherits product.product_template_form_view
view_account_payment_term_form account.payment.term.form account.payment.register field Inherits account.view_account_payment_register_form
view_payment_term_disc_form account.payment.term.disc.form account.payment.term xpath Inherits account.view_payment_term_form
view_payment_term_disc_tree account.payment.term.disc.tree account.payment.term field Inherits account.view_payment_term_tree
Models touched (5)

New fields (5)
  • check_payment_discount Boolean
    compute='_compute_payment_disc'
  • discount_amt Monetary
    compute='_compute_discount_amt' help='Discount amount possible with the given payment term' store=True args: 'Discount Possible'
  • discount_date Date
    compute='_compute_discount_date' help='Compute discount on the invoice based on the payment term discount percentage.and the current date' store=True
  • discount_taken Monetary
    copy=False args: 'Discount taken'
  • shipping_lines_total Monetary
    compute='_compute_shipping_lines_total' help='Exclude shipping lines total from discount if applicable in terms'
Public methods (0)

No public methods.

New fields (3)
  • amount_helper Float
    required=False string='Amount helper'
  • discount_amt Monetary
    store=True
  • invoice_id Many2one → account.move
    comodel_name='account.move' string='Invoice'
Public methods (3)
  • action_create_payments(self)
  • default_get(self, fields)
    @api.model
  • onchange_payment_amount(self)
    @api.onchange('amount', 'payment_difference', 'payment_date', 'currency_id')

New fields (3)
  • is_discount Boolean
    help='Check this box if this payment term has a discount. If discount is used the remaining amount of the invoice will not be paid' string='Early Payment Discount'
  • is_exclude_shipping_lines Boolean
    help='Check this box if you want to exclude shipping charges from discount' string='Exclude Shipping from Discount'
  • is_exclude_taxes_discount Boolean
    help='Check this box if want to exclude taxes from discount' string='Exclude Taxes from Discount'
Public methods (0)

No public methods.

New fields (3)
  • discount_expense_account_id Many2one → account.account
    help='This account will be used to post the discount on sales.' string='Discount on Sales Account' args: 'account.account'
  • discount_income_account_id Many2one → account.account
    help='This account will be used to post the discount on purchases.' string='Discount on Purchases Account' args: 'account.account'
  • is_discount Boolean
    readonly=True related='payment_id.is_discount' string='Early Payment Discount'
Public methods (1)
  • OnchangeDiscount(self)
    @api.onchange('discount_percentage')

New fields (1)
  • is_exclude_shipping_amount Boolean
    help='Check this box if want to exclude shipping charges from discount' string='Exclude Shipping Amount'
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_discount
VERSION
VERSION 1.1.7
CATEGORY
CATEGORYAccounting & Finance
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators
COMMITTERS
COMMITTERSMaxime Chambreuil, Daniel Reis, OCA Transbot, oca-travis, Weblate, OCA-git-bot, oca-git-bot, Atchuthan Ubendran, Raphael
WEBSITE
WEBSITEhttps://github.com/OCA/account-payment
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - purchase
    - 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 (8)
XML IDNameModelTypeStatus
invoice_form_discounts account.invoice.form.discount account.move field Inherits account.view_move_form
invoice_tree_discount account.invoice.tree.discount account.move field Inherits account.view_invoice_tree
product_template_form_view_exclude_shipping product_template.form.view.exclude.shipping product.template xpath Inherits product.product_template_form_view
view_account_payment_term_form account.payment.term.form account.payment.register field Inherits account.view_account_payment_register_form
view_payment_term_disc_form account.payment.term.disc.form account.payment.term xpath Inherits account.view_payment_term_form
view_payment_term_disc_tree account.payment.term.disc.tree account.payment.term field Inherits account.view_payment_term_tree
view_payment_term_line_disc_form account.payment.term.line.disc.form account.payment.term.line xpath Inherits account.view_payment_term_line_form
view_payment_term_line_disc_tree account.payment.term.line.disc.tree account.payment.term.line xpath Inherits account.view_payment_term_line_tree
Models touched (5)

New fields (5)
  • check_payment_discount Boolean
    compute='_compute_payment_disc' args: 'Check Payment Discount'
  • discount_amt Monetary
    compute='_compute_discount_amt' help='Discount amount possible with the given payment term' store=True args: 'Discount Possible'
  • discount_date Date
    compute='_compute_discount_date' help='Compute discount on the invoice based on the payment term discount percentage.and the current date' store=True args: 'Discount Date'
  • discount_taken Monetary
    copy=False args: 'Discount taken'
  • shipping_lines_total Monetary
    compute='_compute_shipping_lines_total' help='Exclude shipping lines total from discount if applicable in terms' args: 'Shipping Lines Total'
Public methods (0)

No public methods.

New fields (2)
  • discount_amt Monetary
    store=True
  • invoice_id Many2one → account.move
    comodel_name='account.move' string='Invoice'
Public methods (3)
  • action_create_payments(self)
  • default_get(self, fields)
    @api.model
  • onchange_payment_amount(self)
    @api.onchange('amount', 'payment_difference', 'payment_date')

New fields (3)
  • is_discount Boolean
    help='Check this box if this payment term has a discount. If discount is used the remaining amount of the invoice will not be paid' string='Early Payment Discount'
  • is_exclude_shipping_lines Boolean
    help='Check this box if you want to exclude shipping charges from discount' string='Exclude Shipping from Discount'
  • is_exclude_taxes_discount Boolean
    help='Check this box if want to exclude taxes from discount' string='Exclude Taxes from Discount'
Public methods (0)

No public methods.

New fields (5)
  • discount Float
    digits=(4, 2) args: 'Discount (%)'
  • discount_days Integer
    args: 'Discount Days'
  • discount_expense_account_id Many2one → account.account
    help='This account will be used to post the discount on sales.' string='Discount on Sales Account' args: 'account.account'
  • discount_income_account_id Many2one → account.account
    help='This account will be used to post the discount on purchases.' string='Discount on Purchases Account' args: 'account.account'
  • is_discount Boolean
    readonly=True related='payment_id.is_discount' string='Early Payment Discount'
Public methods (1)
  • OnchangeDiscount(self)
    @api.onchange('discount')

New fields (1)
  • is_exclude_shipping_amount Boolean
    help='Check this box if want to exclude shipping charges from discount' string='Exclude Shipping Amount'
Public methods (0)

No public methods.