Skip to content
Health
63/100
fair
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 44 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 10.0

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

Security findings
Grave / minor (static analysis)
Required by
2
Modules depending on it
External deps
1 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 2 migration notes 4 models 4 views 0 HTTP endpoints

Description

Dependencies

Code analysis

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

Views touched 4

XML IDNameModelTypeStatus
account_move_line_tree_view account.move.line.tree (in account_cash_discount_payment) account.move.line tree 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 form 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 form Inherits account_payment_order.account_payment_line_form
account_payment_line_tree_view account.payment.line.tree (account_cash_discount_payment) account.payment.line tree Inherits account_payment_order.account_payment_line_tree

HTTP endpoints 0

No HTTP endpoints found for this module.

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')

Loading…

Loading…