Skip to content
Health
58/100
fair
  • Security25/25
    No findings
  • Activity6/25
    Last human commit 30 months ago
  • Required by15/25
    1 module depends on it
  • Maturity12/25
    In 2 Odoo series since 14.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.12 MB
Module directory on disk
Code analysis 1 migration note 5 models 6 views 0 HTTP endpoints

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_payment_batch_process_discount

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 6

XML IDNameModelTypeStatus
invoice_form_discounts account.invoice.form.discount account.move form Inherits account.view_move_form
invoice_tree_discount account.invoice.tree.discount account.move tree Inherits account.view_invoice_tree
product_template_form_view_exclude_shipping product_template.form.view.exclude.shipping product.template form Inherits product.product_template_form_view
view_account_payment_term_form account.payment.term.form account.payment.register form Inherits account.view_account_payment_register_form
view_payment_term_disc_form account.payment.term.disc.form account.payment.term form Inherits account.view_payment_term_form
view_payment_term_disc_tree account.payment.term.disc.tree account.payment.term tree Inherits account.view_payment_term_tree

HTTP endpoints 0

No HTTP endpoints found for this module.

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.

Loading…