Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 4 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 19.0

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

Security findings
Grave / minor (static analysis)
Required by
0
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.07 MB
Module directory on disk
Code analysis 0 migration notes 3 models 3 views 0 HTTP endpoints

Description

This module extends the functionality of account payment base to support discount and to allow users to automatically create early payment discount move lines.

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

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

Views touched 3

XML IDNameModelTypeStatus
account_payment_line_create_form account.payment.line.create form Inherits account_payment_batch_oca.account_payment_line_create_form
account_payment_line_form_view account.payment.line form Inherits account_payment_batch_oca.account_payment_line_form
account_payment_line_tree_view account.payment.line tree Inherits account_payment_batch_oca.account_payment_line_tree

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (6)
  • amount_residual_currency Monetary
    compute='_compute_amount_residual_currency'
  • can_have_discount Boolean
    related='move_line_id.move_id.invoice_payment_term_id.early_discount'
  • diff_amount_residual_currency_amount_discount_currency Monetary
    compute='_compute_diff_amount_residual_currency_amount_discount_currency' help='Amount of discount' string='Discount Amount'
  • discount_amount_currency Monetary
    compute='_compute_discount_amount_currency' help='Total amount discount included'
  • discount_date Date
    related='move_line_id.discount_date'
  • pay_with_discount Boolean
    compute='_compute_pay_with_discount' precompute=True readonly=False store=True
Public methods (0)

No public methods.

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 (0)

No public methods.