This commit adds a `custom_mode` field to payment acquirers to allow distinguishing the different payment modes made possible through the `payment_custom` module: Wire Transfer, Cash on Delivery, On-site picking. This avoids making direct references to the modules' data when trying to figure out which acquirer is which, hence allowing duplicating the acquirers in multi-company databases. task-2853489 closes odoo/odoo#99400 Related: odoo/upgrade#3847 Related: odoo/enterprise#30966 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
17 lines
618 B
XML
17 lines
618 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo noupdate="1">
|
|
|
|
<record id="payment.payment_acquirer_transfer" model="payment.acquirer">
|
|
<field name="provider">custom</field>
|
|
<field name="redirect_form_view_id" ref="redirect_form"/>
|
|
<!-- Clear the default value before recomputing the pending_msg -->
|
|
<field name="pending_msg" eval="False"/>
|
|
<field name="custom_mode">wire_transfer</field>
|
|
</record>
|
|
|
|
<function model="payment.acquirer"
|
|
name="_transfer_ensure_pending_msg_is_set"
|
|
eval="[[ref('payment.payment_acquirer_transfer')]]"/>
|
|
|
|
</odoo>
|