TIP: You can type at any time to perform a new search.
Sale Payment Method
sale_payment_method · OCA/sale-workflow
Security findings
Migration considerations
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.addons.decimal_precision` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.tools` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
payment_method_view_form— For a target of Odoo 17.0+: view 'payment_method_view_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourcesale_order_view_form— For a target of Odoo 17.0+: view 'sale_order_view_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · sourcepayment_method_view_tree— View 'payment_method_view_tree' is defined with a `<tree>` root tag: renamed to `<list>` in Odoo 18.0. migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- 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…