Repository
OCA/bank-payment-alternative · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/bank-payment-alternative
Last tracking update
2026-08-05 00:15:21
Authors
Odoo Community Association (OCA), ACSONE SA/NV
Maintainers
Odoo Community Association (OCA), ACSONE SA/NV
Committers
OCA-git-bot, oca-ci, Zina Rasoamanana
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
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.

Code Analysis

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.