TIP: You can type at any time to perform a new search.
Sale Payment Method
sale_payment_method · OCA/sale-workflow
- Repository
- OCA/sale-workflow · module folder · Try on Runboat
- Module version
- 0.2.1
- Category
- Generic Modules/Others
- Folder size
- 0.43 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.akretion.com/
- Last tracking update
- 2026-08-07 07:03:04
- Authors
- Akretion, Odoo Community Association (OCA)
- Maintainers
- Akretion, Odoo Community Association (OCA)
- Committers
- Benoit Guillot, Laetitia Gangloff, Jos De Graeve, Pedro M. Baeza, GitHub, Stéphane Bidoul (ACSONE), Weblate, OCA Transbot, Damien Crier, Stefan Rijnhart (Opener), OCA-git-bot, oca-travis
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- sale_payment_method_automatic_workflow, sale_payment_method_transaction_id, sale_quick_payment
- Description
Code Analysis ⓘ
Views touched (6)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
payment_method_view_form |
sale_payment_method.payment_method.view_form | payment.method | form | New |
payment_method_view_tree |
sale_payment_method.payment_method.view_tree | payment.method | tree | New |
sale_order_view_form |
sale.order.view.form | sale.order | form | Inherits sale.view_order_form |
sale_order_view_tree |
sale.order.view.tree | sale.order | tree | Inherits sale.view_order_tree |
view_quotation_tree |
sale.order.view.tree | sale.order | tree | Inherits sale.view_quotation_tree |
view_sales_order_filter |
sale.order | Inherits sale.view_sales_order_filter |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (3)
New fields (1)
-
sale_idsMany2many → sale.ordercomodel_name='sale.order'string='Sales Orders'
No public methods.
New fields (4)
-
company_idMany2one → res.companycomodel_name='res.company'default=_default_company_idstring='Company' -
journal_idMany2one → account.journalcomodel_name='account.journal'help='If a journal is selected, when a payment is recorded on a backend, payment entries will be created in this journal.'string='Journal' -
nameCharhelp='The name of the method on the backend'required=True -
payment_term_idMany2one → account.payment.termcomodel_name='account.payment.term'help='Default payment term of a sale order using this method.'string='Payment Term'
No public methods.
New fields (4)
-
amount_paidFloatcompute='_compute_amount'digits_compute=dp.get_precision('Account')store=Falsestring='Amount Paid' -
payment_idsMany2many → account.move.linecomodel_name='account.move.line'copy=Falsedomain=[('account_id.type', '=', 'receivable')]string='Payments Entries' -
payment_method_idMany2one → payment.methodcomodel_name='payment.method'ondelete='restrict'string='Payment Method' -
residualFloatcompute='_compute_amount'digits_compute=dp.get_precision('Account')store=Falsestring='Balance'
-
action_cancel(self)@api.multi -
action_view_payments(self)@api.multiReturn an action to display the payment linked with the sale order -
add_payment(self, journal_id, amount, date=None, description=None)@api.multiGenerate payment move lines of a certain amount linked with the sale order. -
automatic_payment(self, amount=None)@api.multiCreate the payment entries to pay a sale order, respecting the payment terms. If no amount is defined, it will pay the residual amount of the sale order. -
onchange_payment_method_id_set_payment_term(self)@api.onchange('payment_method_id')
Loading…