Purchase Advance Payment
purchase_advance_payment · OCA/purchase-workflow
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 4 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
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.16 MB
Module directory on disk
Code analysis
0 migration notes
5 models
8 views
0 HTTP endpoints
Description
The module allows to add advance payments on purchase orders and Request for Quotation. The advance payments are allowed even before confirmation and before starting the billing process.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 8
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
purchase_order_form |
purchase.order.form | purchase.order | form | Inherits purchase.purchase_order_form |
purchase_order_kpis_tree |
purchase.order.inherit.purchase.order.tree | purchase.order | tree | Inherits purchase.purchase_order_kpis_tree |
purchase_order_view_tree |
purchase.order.view.tree | purchase.order | tree | Inherits purchase.purchase_order_view_tree |
res_config_settings_view_form_purchase |
res.config.settings.view.form.inherit.purchase - purchase_advance_payment | res.config.settings | form | Inherits purchase.res_config_settings_view_form_purchase |
view_account_payment_form |
account.payment.form - purchase_advance_payment | account.payment | form | Inherits account.view_account_payment_form |
view_account_payment_search |
account.payment.search | account.payment | search | Inherits account.view_account_payment_search |
view_account_supplier_payment_tree |
account.payment.tree | account.payment | tree | Inherits account.view_account_supplier_payment_tree |
view_account_voucher_wizard |
Advance Payment | account.voucher.wizard.purchase | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (0)
No new fields.
Public methods (1)-
action_post(self)
New fields (1)
-
purchase_idMany2one → purchase.orderreadonly=True args: 'purchase.order'
No public methods.
New fields (11)
-
amount_advanceMonetarycurrency_field='journal_currency_id'required=True args: 'Amount advanced' -
amount_totalMonetaryreadonly=True -
available_payment_method_line_idsMany2many → account.payment.method.linecomodel_name='account.payment.method.line'compute='_compute_available_payment_method_line_ids' -
currency_amountMonetarycompute='_compute_currency_amount'currency_field='currency_id'readonly=Truestore=True args: 'Curr. amount' -
currency_idMany2one → res.currencyreadonly=True args: 'res.currency' -
dateDatedefault=fields.Date.context_todayrequired=True -
journal_currency_idMany2one → res.currencycompute='_compute_get_journal_currency'readonly=Falsestore=True args: 'res.currency' -
journal_idMany2one → account.journaldomain=[('type', 'in', ('bank', 'cash'))]required=True args: 'account.journal' -
order_idMany2one → purchase.orderrequired=True args: 'purchase.order' -
payment_method_line_idMany2one → account.payment.method.linecomodel_name='account.payment.method.line'compute='_compute_payment_method_line_id'domain="[('id', 'in', available_payment_method_line_ids)]"readonly=Falsestore=Truestring='Payment Method' -
payment_refCharargs: 'Ref.'
-
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_idsOne2many → account.paymentreadonly=Truestring='Pay purchase advanced' args: 'account.payment', 'purchase_id' -
advance_payment_statusSelectioncompute='_compute_purchase_advance_payment'copy=Falsereadonly=Trueselection=[('not_paid', 'Not Paid'), ('paid', 'Paid'), ('partial', 'Partially Paid')]store=Truetracking=True -
amount_residualFloatcompute='_compute_purchase_advance_payment'readonly=Truestore=True args: 'Residual amount' -
payment_line_idsMany2many → account.move.linecompute='_compute_purchase_advance_payment'store=Truestring='Payment move lines' args: 'account.move.line'
No public methods.
New fields (2)
-
auto_post_purchase_advance_paymentsBooleanconfig_parameter='purchase_advance_payment.auto_post_advance_payments' -
auto_reconcile_purchase_advance_paymentsBooleanconfig_parameter='purchase_advance_payment.auto_reconcile_advance_payments'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…