Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Human commit this month
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 8 Odoo series since 12.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.1 MB
Module directory on disk
Code analysis 0 migration notes 4 models 5 views 0 HTTP endpoints

Description

The module allows to add advance payments on sales and then use them on invoices.

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 5

XML IDNameModelTypeStatus
view_account_payment_tree account.payment.tree account.payment list Inherits account.view_account_payment_tree
view_account_voucher_wizard Advance Payment account.voucher.wizard form New
view_order_form sale.order.form sale.order form Inherits sale.view_order_form
view_order_tree sale.order.tree sale.order tree Inherits sale.view_order_tree
view_quotation_tree sale.order.tree sale.order tree Inherits sale.view_quotation_tree

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 4

New fields (0)

No new fields.

Public methods (1)
  • action_post(self)

New fields (1)
  • sale_id Many2one → sale.order
    comodel_name='sale.order' readonly=True
Public methods (0)

No public methods.

New fields (10)
  • amount_advance Monetary
    currency_field='journal_currency_id' required=True args: 'Amount advanced'
  • amount_total Monetary
  • currency_amount Monetary
    compute='_compute_currency_amount' currency_field='currency_id' store=True args: 'Curr. amount'
  • currency_id Many2one → res.currency
    args: 'res.currency'
  • date Date
    default=fields.Date.context_today required=True
  • journal_currency_id Many2one → res.currency
    compute='_compute_get_journal_currency' readonly=False store=True args: 'res.currency'
  • journal_id Many2one → account.journal
    domain=[('type', 'in', ('bank', 'cash'))] required=True args: 'account.journal'
  • order_id Many2one → sale.order
    required=True args: 'sale.order'
  • payment_ref Char
    args: 'Ref.'
  • payment_type Selection
    default='inbound' required=True args: [('inbound', 'Inbound'), ('outbound', 'Outbound')]
Public methods (3)
  • check_amount(self)
    @api.constrains('amount_advance')
  • default_get(self, fields_list)
    @api.model
  • make_advance_payment(self)
    Create customer paylines and validates the payment

New fields (4)
  • account_payment_ids One2many → account.payment
    comodel_name='account.payment' inverse_name='sale_id' string='Pay sale advanced'
  • advance_payment_status Selection
    compute='_compute_advance_payment' copy=False selection=[('not_paid', 'Not Paid'), ('paid', 'Paid'), ('partial', 'Partially Paid')] store=True tracking=True
  • amount_residual Monetary
    compute='_compute_advance_payment' store=True string='Residual amount'
  • payment_line_ids Many2many → account.move.line
    comodel_name='account.move.line' compute='_compute_advance_payment' store=True string='Payment move lines'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…