This commit changes the way transactions linked to a document (sales order, invoice...) are created in a payment flow. Rather than receiving and trusting the transaction values from the controller, they are now read from the linked document, and the payment flow is rerouted to use the document's module's controllers instead of that of `payment`. This ensures that no unexpected value can be passed to the `create` method of a transaction, and simplifies the implementation of the payment flows of linked documents. task-3136240 closes odoo/odoo#126425 Related: odoo/enterprise#43212 Related: odoo/upgrade#5124 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': "Payment - Account",
|
|
'category': 'Accounting/Accounting',
|
|
'summary': "Enable customers to pay invoices on the portal and post payments when transactions are processed.",
|
|
'version': '2.0',
|
|
'depends': ['account', 'payment'],
|
|
'auto_install': ['account'],
|
|
'data': [
|
|
'data/ir_config_parameter.xml',
|
|
'data/onboarding_data.xml',
|
|
|
|
'security/ir.model.access.csv',
|
|
'security/ir_rules.xml',
|
|
|
|
'views/account_payment_menus.xml',
|
|
'views/account_portal_templates.xml',
|
|
'views/account_move_views.xml',
|
|
'views/account_journal_views.xml',
|
|
'views/account_payment_views.xml',
|
|
'views/payment_provider_views.xml',
|
|
'views/payment_transaction_views.xml',
|
|
|
|
'wizards/account_payment_register_views.xml',
|
|
'wizards/payment_link_wizard_views.xml',
|
|
'wizards/payment_refund_wizard_views.xml',
|
|
'wizards/res_config_settings_views.xml',
|
|
],
|
|
'post_init_hook': 'post_init_hook',
|
|
'uninstall_hook': 'uninstall_hook',
|
|
'license': 'LGPL-3',
|
|
}
|