Repository
OCA/account-payment · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting
Folder size
0.1 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-payment
Last tracking update
2026-08-07 07:47:38
Authors
ACSONE SA/NV, Odoo Community Association (OCA)
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA)
Committers
Weblate, OCA Transbot, OCA-git-bot, oca-travis, dsolanki
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
account_cash_discount_payment
Description

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
account_move_form account.move.form (account_cash_discount_base) account.move form Inherits account.view_move_form
account_move_tree_view account.move.tree (in account_cash_discount_base) account.move tree Inherits account.view_invoice_tree
account_payment_term_form_view account.payment.term.form (in account_cash_discount_base) account.payment.term form Inherits account.view_payment_term_form
report_invoice_document_inherit report_invoice_document_inherit ir.ui.view qweb Inherits account.report_invoice_document
res_company_form_view res.company.form (in account_cash_discount_base) res.company form Inherits base.view_company_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (12)
  • amount_total_with_discount Monetary
    compute='_compute_amount_total_with_discount' store=True string='Total (with discount)'
  • discount_amount Monetary
    compute='_compute_discount_amount' store=True
  • discount_base_date Date
    compute='_compute_discount_base_date'
  • discount_delay Integer
    readonly=True states=READONLY_STATES string='Discount Delay (days)'
  • discount_due_date Date
    readonly=True states=READONLY_STATES
  • discount_due_date_readonly Date
    compute='_compute_discount_due_date'
  • discount_percent Float
    digits='Discount' readonly=True states=READONLY_STATES string='Discount (%)'
  • has_discount Boolean
    compute='_compute_has_discount' store=True
  • is_cash_discount_allowed Boolean
    compute='_compute_is_cash_discount_allowed'
  • real_discount_amount Monetary
    compute='_compute_real_discount_amount' string='Discount amount (minus related refunds amount)'
  • refunds_discount_amount Monetary
    compute='_compute_refunds_discount_amount' store=True
  • residual_with_discount Monetary
    compute='_compute_residual_with_discount'
Public methods (1)
  • action_post(self)

New fields (2)
  • discount_delay Integer
    string='Discount Delay (days)'
  • discount_percent Float
    digits='Discount' string='Discount (%)'
Public methods (0)

No public methods.

New fields (2)
  • cash_discount_base_amount_type Selection
    default='untaxed' required=True selection='_get_cash_discount_base_amount_types'
  • cash_discount_use_tax_adjustment Boolean
    compute='_compute_cash_discount_tax_adjustment' store=True
Public methods (0)

No public methods.

Loading…

Loading…