Files
odoo_source/addons/payment_custom/data/payment_acquirer_data.xml
T
Victor Feyens ed01b9a627 [REF] payment_custom, *: distinguish custom payment modes
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>
2022-09-06 12:01:38 +02:00

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>